Class: Investolink::Subscriber
- Inherits:
-
Resource
- Object
- InvestolinkObject
- Resource
- Investolink::Subscriber
- Defined in:
- lib/investolink/subscriber.rb
Instance Attribute Summary
Attributes inherited from InvestolinkObject
Class Method Summary collapse
- .asset(id) ⇒ Object
- .assets(id) ⇒ Object
- .donation(id) ⇒ Object
- .donations(id) ⇒ Object
- .fundallocation(id) ⇒ Object
- .fundallocations(id) ⇒ Object
- .issue(id) ⇒ Object
- .issue_transactions(id) ⇒ Object
- .issuer(id) ⇒ Object
- .issuer_owners(id) ⇒ Object
- .owner(id) ⇒ Object
- .project(id) ⇒ Object
- .reward(id) ⇒ Object
- .rewards(id) ⇒ Object
- .search(params = {}) ⇒ Object
- .sociallink(id) ⇒ Object
- .sociallinks(id) ⇒ Object
- .transaction(id) ⇒ Object
Methods inherited from Resource
#refresh, #resource_url, resource_url, retrieve
Methods inherited from InvestolinkObject
#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Investolink::InvestolinkObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Investolink::InvestolinkObject
Class Method Details
.asset(id) ⇒ Object
64 65 66 67 |
# File 'lib/investolink/subscriber.rb', line 64 def self.asset(id) response, api_key, api_token = Investolink.request(:get, asset_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.assets(id) ⇒ Object
69 70 71 72 |
# File 'lib/investolink/subscriber.rb', line 69 def self.assets(id) response, api_key, api_token = Investolink.request(:get, assets_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.donation(id) ⇒ Object
54 55 56 57 |
# File 'lib/investolink/subscriber.rb', line 54 def self.donation(id) response, api_key, api_token = Investolink.request(:get, donation_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.donations(id) ⇒ Object
59 60 61 62 |
# File 'lib/investolink/subscriber.rb', line 59 def self.donations(id) response, api_key, api_token = Investolink.request(:get, donations_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.fundallocation(id) ⇒ Object
74 75 76 77 |
# File 'lib/investolink/subscriber.rb', line 74 def self.fundallocation(id) response, api_key, api_token = Investolink.request(:get, fundallocation_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.fundallocations(id) ⇒ Object
79 80 81 82 |
# File 'lib/investolink/subscriber.rb', line 79 def self.fundallocations(id) response, api_key, api_token = Investolink.request(:get, fundallocations_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.issue(id) ⇒ Object
9 10 11 12 |
# File 'lib/investolink/subscriber.rb', line 9 def self.issue(id) response, api_key, api_token = Investolink.request(:get, issue_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.issue_transactions(id) ⇒ Object
29 30 31 32 |
# File 'lib/investolink/subscriber.rb', line 29 def self.issue_transactions(id) response, api_key, api_token = Investolink.request(:get, issue_transactions_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.issuer(id) ⇒ Object
14 15 16 17 |
# File 'lib/investolink/subscriber.rb', line 14 def self.issuer(id) response, api_key, api_token = Investolink.request(:get, issuer_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.issuer_owners(id) ⇒ Object
34 35 36 37 |
# File 'lib/investolink/subscriber.rb', line 34 def self.issuer_owners(id) response, api_key, api_token = Investolink.request(:get, issuer_owners_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.owner(id) ⇒ Object
24 25 26 27 |
# File 'lib/investolink/subscriber.rb', line 24 def self.owner(id) response, api_key, api_token = Investolink.request(:get, owner_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.project(id) ⇒ Object
39 40 41 42 |
# File 'lib/investolink/subscriber.rb', line 39 def self.project(id) response, api_key, api_token = Investolink.request(:get, project_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.reward(id) ⇒ Object
44 45 46 47 |
# File 'lib/investolink/subscriber.rb', line 44 def self.reward(id) response, api_key, api_token = Investolink.request(:get, reward_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.rewards(id) ⇒ Object
49 50 51 52 |
# File 'lib/investolink/subscriber.rb', line 49 def self.rewards(id) response, api_key, api_token = Investolink.request(:get, rewards_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.search(params = {}) ⇒ Object
4 5 6 7 |
# File 'lib/investolink/subscriber.rb', line 4 def self.search(params={}) response, api_key, api_token = Investolink.request(:get, search_url, @api_key, @api_token, params) Util.convert_to_investolink_object(response, api_key, api_token) end |
.sociallink(id) ⇒ Object
84 85 86 87 |
# File 'lib/investolink/subscriber.rb', line 84 def self.(id) response, api_key, api_token = Investolink.request(:get, (id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.sociallinks(id) ⇒ Object
89 90 91 92 |
# File 'lib/investolink/subscriber.rb', line 89 def self.(id) response, api_key, api_token = Investolink.request(:get, (id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |
.transaction(id) ⇒ Object
19 20 21 22 |
# File 'lib/investolink/subscriber.rb', line 19 def self.transaction(id) response, api_key, api_token = Investolink.request(:get, transaction_url(id), @api_key, @api_token) Util.convert_to_investolink_object(response, api_key, api_token) end |