presto_api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56ea195f97133b70f930d301d76b30de354b135
4
- data.tar.gz: 5035dd130db7de43b48d570084118983af0c1704
3
+ metadata.gz: 94c50dbbb46c6a6a659301092291c57e0f748975
4
+ data.tar.gz: 9db1da2d1829fd67e576b30e4cd4a85280c82167
5
5
  SHA512:
6
- metadata.gz: bc9b2670d38e27a7d5bbffa2115012576378ec28db5b96aa3fbeb97cc7b1784edebe60895017cd42ceec14f22b8bb407725fdf81b5fe98868f21a916da1ed8f8
7
- data.tar.gz: bb18d91cb27f2090e23aa11840e877e16b427a34a4057314d3d3a4322ff0d097b34ddb05d92021ec9a73224a438a757a67133509d07b3b0cf3b00a08755df451
6
+ metadata.gz: 0316ce8d8fe53e0be155c7bd15326d9937bffd44938fc1d3d94341b6aaed3694bee7ba835d8397c8168a643fba8185090db3050f0bf7512ae9c0db42ea13995d
7
+ data.tar.gz: 81760fd520c8b54cca2c86a2bb2347dd30fb607862b926c59590b512a50393a898295f60d5b6fda3dca46219b70626c7ad0cfa4c85df4ad44d30865c451ad8a1
data/lib/presto_api.rb CHANGED
@@ -20,8 +20,8 @@ module PrestoAPI
20
20
  end
21
21
  end
22
22
 
23
- class CardStatus < Base
24
- attr_accessor :balance, :status
23
+ class Card < Base
24
+ attr_accessor :number, :balance, :status
25
25
  end
26
26
 
27
27
  class User < Base
@@ -114,10 +114,11 @@ module PrestoAPI
114
114
  puts 'Try logging in with username/password instead of just the card number'
115
115
  return nil
116
116
  end
117
- card_status = CardStatus.new
118
- card_status.status = status.content
119
- card_status.balance = balance.content
120
- card_status
117
+ card = Card.new
118
+ card.status = status.content
119
+ card.balance = balance.content
120
+ card.number = card_number_from_page(page)
121
+ card
121
122
  end
122
123
 
123
124
  def user_from_page(page)
@@ -1,3 +1,3 @@
1
1
  module PrestoAPI
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presto_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Simard