anego 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: ac92f192a455fe73a48f51adc83765c513b0d195
4
- data.tar.gz: db7de0ada9fb3f94419839b7f4eae99572f6c92b
3
+ metadata.gz: c4fe95a22421d22c54c4d7c53a8b59a7dedcc401
4
+ data.tar.gz: 47c6e7aa858967d350ae6e692fe54037cf7ddaff
5
5
  SHA512:
6
- metadata.gz: 681f37f9f3ac2e69e76e8cbc67569d903259548ddabc62e692d9871157cc764dc8ff9f77bf714f3f83569a58202196589e8157b3c9ea5da034c91d7540e61021
7
- data.tar.gz: 66ebd029e487f79f38e19752545050909e556f533ece074e29e625c0a2d5e4ef2092ab9083fab434f746ae409cb7df478d4cbba266be62b17a37cac82a4e87e3
6
+ metadata.gz: 2e85ce5627025c5d895a6239b6873d0b9db1ed25c853faf6f7eec11f5e3057cf4a7237d68474a458e315d6fe087051b38d8cc52428295fffbb913d86b6d9c34c
7
+ data.tar.gz: c10a21fee1c0a8849763c60fd8dec1a38d9e89e354889464f21020288f80333e6a1cf17e9fb5f49be77f39e4bb85194e1a8d8bf5071750b325fa35f54590e29a
data/README.md CHANGED
@@ -32,7 +32,13 @@ accounts = response.body.accounts
32
32
  account = accounts.first
33
33
 
34
34
  # Products API
35
- client.products(account.account_id)
35
+ response = client.products(account.account_id)
36
+
37
+ products = response.body.products
38
+ product = products.first
39
+
40
+ # Product Ratings API
41
+ response = client.product_ratings(product)
36
42
 
37
43
  ```
38
44
 
@@ -14,6 +14,10 @@ module Anego
14
14
  request :get, "/accounts/#{account_id}/products"
15
15
  end
16
16
 
17
+ def product_ratings(product)
18
+ request :get, "/apps/#{product.market}/app/#{product.product_id}/ratings"
19
+ end
20
+
17
21
  private
18
22
 
19
23
  def request(method, path)
@@ -1,3 +1,3 @@
1
1
  module Anego
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anego
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
  - fakestarbaby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client