mondo 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +9 -0
- data/lib/mondo/client.rb +6 -0
- data/lib/mondo/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: a44071b97b0fc8ee7fb8bb871a51d44137123871
|
4
|
+
data.tar.gz: 41291a742f922ea9158275b3a96533a12a8df905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 783a7f93c202ce1d75c82ef19954391a970455511b207923d3348edea6a7c647732fce3bdf66d4fe69bc8425d96756d1bf9a073a7e4fefbf38709f7f0554f0cc
|
7
|
+
data.tar.gz: 8d2a87abe38ea6fe33f3b69d98ecbd6b111bdbcbbc15082417fc15fcce8e0f62afec3fa883d84686dcc281daa4a69b612e94c626d31fa0e9443d48f23cf2360a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/mondo/client.rb
CHANGED
@@ -121,6 +121,12 @@ module Mondo
|
|
121
121
|
Transaction.new(resp.parsed['transaction'], self)
|
122
122
|
end
|
123
123
|
|
124
|
+
# Returns {"balance"=>-7708, "currency"=>"GBP", "spend_today"=>-12708}
|
125
|
+
def balance
|
126
|
+
raise ClientError.new("You must provide an account id to see your balance") unless self.account_id
|
127
|
+
api_get("balance", account_id: self.account_id).parsed
|
128
|
+
end
|
129
|
+
|
124
130
|
def create_feed_item(params)
|
125
131
|
FeedItem.new(params, self).save
|
126
132
|
end
|
data/lib/mondo/version.rb
CHANGED