Class: Investolink::Project
Instance Attribute Summary
#api_key, #api_token
Instance Method Summary
collapse
#save
included
Methods inherited from Resource
#refresh, #resource_url, resource_url, retrieve
#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Investolink::InvestolinkObject
Instance Method Details
#assets(params = {}) ⇒ Object
#donations(params = {}) ⇒ Object
#fundallocations(params = {}) ⇒ Object
36
37
38
39
|
# File 'lib/investolink/project.rb', line 36
def fundallocations(params={})
response, api_key, api_token = Investolink.request(:get, fundallocations_url, @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|
#new_asset(params) ⇒ Object
#new_donation(params) ⇒ Object
51
52
53
54
|
# File 'lib/investolink/project.rb', line 51
def new_donation(params)
response, api_key, api_token = Investolink.request(:post, new_donation_url(id), @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|
#new_fundallocation(params) ⇒ Object
41
42
43
44
|
# File 'lib/investolink/project.rb', line 41
def new_fundallocation(params)
response, api_key, api_token = Investolink.request(:post, new_fundallocation_url(id), @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|
#new_reward(params) ⇒ Object
11
12
13
14
|
# File 'lib/investolink/project.rb', line 11
def new_reward(params)
response, api_key, api_token = Investolink.request(:post, new_reward_url(id), @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|
#new_sociallink(params) ⇒ Object
31
32
33
34
|
# File 'lib/investolink/project.rb', line 31
def new_sociallink(params)
response, api_key, api_token = Investolink.request(:post, new_sociallink_url(id), @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|
#rewards(params = {}) ⇒ Object
#sociallinks(params = {}) ⇒ Object
26
27
28
29
|
# File 'lib/investolink/project.rb', line 26
def sociallinks(params={})
response, api_key, api_token = Investolink.request(:get, sociallinks_url, @api_key, @api_token, params)
Util.convert_to_investolink_object(response, api_key, api_token)
end
|