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.
- checksums.yaml +4 -4
- data/app/models/petal.rb +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5083d01fa94f91e57688ab2a58b0730223563ba
|
4
|
+
data.tar.gz: c0c60f7bb253136dfd846e470107086fbe716caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec10ae1255092c01a7f2e0476a86638193401a31a8cb2916ab04c0f9d5023ebe15344515efca6c0a3920ebf48d93b7ee2cd382989445b0bcc86aca74bef8d00
|
7
|
+
data.tar.gz: a618d31900fb7a30d93f7f5676bf86361c0abe20d564b50d3687e1e75fb612f9442a3bb583ac83a41dff1bcddcd87649496e5420b0d9ed4dd4652fa5d11118c6
|
data/app/models/petal.rb
ADDED
@@ -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.
|
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-
|
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
|