accounts_client 0.2.22 → 0.2.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/petal.rb +14 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f90d3b7002905d92fcba5f2fa56cdc113d77d423
4
- data.tar.gz: 83506107089446461f29ad142a152d0587087dfc
3
+ metadata.gz: b5083d01fa94f91e57688ab2a58b0730223563ba
4
+ data.tar.gz: c0c60f7bb253136dfd846e470107086fbe716caf
5
5
  SHA512:
6
- metadata.gz: 41a8ca5e23d6170bc4d7ce7dd2a35b7186f7bce9a8e3b3298a5bf993456b8167760df6eceda25a6d2df8ffa6a1dc4512823ed52df59b74fee63c915423b284ad
7
- data.tar.gz: 8b89ca5a8635e79f67c37a002525407c5405cc40a55a45e99ae6f60dc8b35b8e9967e2dab682e31057cdda1f9a8ec15612a532ac810fb7fee1a48666cf8ea662
6
+ metadata.gz: bec10ae1255092c01a7f2e0476a86638193401a31a8cb2916ab04c0f9d5023ebe15344515efca6c0a3920ebf48d93b7ee2cd382989445b0bcc86aca74bef8d00
7
+ data.tar.gz: a618d31900fb7a30d93f7f5676bf86361c0abe20d564b50d3687e1e75fb612f9442a3bb583ac83a41dff1bcddcd87649496e5420b0d9ed4dd4652fa5d11118c6
@@ -0,0 +1,14 @@
1
+ class Petal < LogicalModel
2
+ use_hydra Accounts::HYDRA
3
+ set_resource_host Accounts::HOST
4
+ set_resource_path "/v0/petals"
5
+
6
+ attribute :name
7
+ attribute :cents_in_k
8
+ attribute :tester_level
9
+
10
+ set_api_key 'token', Accounts::API_KEY
11
+
12
+ TIMEOUT = 5500 # milisecons
13
+ PER_PAGE = 9999
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accounts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-05 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -63,6 +63,7 @@ files:
63
63
  - app/models/api_key.rb
64
64
  - app/models/padma_account.rb
65
65
  - app/models/padma_user.rb
66
+ - app/models/petal.rb
66
67
  - app/models/petal_subscription.rb
67
68
  - config/initializers/accounts_client.rb
68
69
  - lib/accounts/belongs_to_account.rb