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 +4 -4
- data/lib/presto_api.rb +7 -6
- data/lib/presto_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c50dbbb46c6a6a659301092291c57e0f748975
|
4
|
+
data.tar.gz: 9db1da2d1829fd67e576b30e4cd4a85280c82167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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)
|
data/lib/presto_api/version.rb
CHANGED