anego 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9200e9fc5c76b343692b9f14b4b3325ceead2cd7
4
- data.tar.gz: 1e7337a09e890a6840a46af63e1c4be2efcd3ef0
3
+ metadata.gz: ac92f192a455fe73a48f51adc83765c513b0d195
4
+ data.tar.gz: db7de0ada9fb3f94419839b7f4eae99572f6c92b
5
5
  SHA512:
6
- metadata.gz: 47960bac3893f381e6e6651187a9e20d83c1f95d4242639fb1341bc469441f0d4d4e47984efba285c21d6c94500a73bf34b2003ff44aec12db9275e939d0420b
7
- data.tar.gz: a70696bf24cc0cc02a41aa15cf6dda0b81d1443005faf001586a08b15e0e9c3f0195d566d45c8ac8382f221ad541243f44f779a5941fdb97c87b07c86ef35309
6
+ metadata.gz: 681f37f9f3ac2e69e76e8cbc67569d903259548ddabc62e692d9871157cc764dc8ff9f77bf714f3f83569a58202196589e8157b3c9ea5da034c91d7540e61021
7
+ data.tar.gz: 66ebd029e487f79f38e19752545050909e556f533ece074e29e625c0a2d5e4ef2092ab9083fab434f746ae409cb7df478d4cbba266be62b17a37cac82a4e87e3
data/README.md CHANGED
@@ -25,8 +25,15 @@ Or install it yourself as:
25
25
  client = Anego::Client.new
26
26
 
27
27
  # Accounts API
28
- client.accounts
28
+ response = client.accounts
29
29
  #=> GET /accounts
30
+
31
+ accounts = response.body.accounts
32
+ account = accounts.first
33
+
34
+ # Products API
35
+ client.products(account.account_id)
36
+
30
37
  ```
31
38
 
32
39
  ## ENV
data/lib/anego/client.rb CHANGED
@@ -10,6 +10,10 @@ module Anego
10
10
  request :get, "/accounts"
11
11
  end
12
12
 
13
+ def products(account_id)
14
+ request :get, "/accounts/#{account_id}/products"
15
+ end
16
+
13
17
  private
14
18
 
15
19
  def request(method, path)
data/lib/anego/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Anego
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anego
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fakestarbaby