Class: Investolink::Issuer

Inherits:
Resource show all
Defined in:
lib/investolink/issuer.rb

Instance Attribute Summary

Attributes inherited from InvestolinkObject

#api_key, #api_token

Instance Method Summary collapse

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

Instance Method Details

#new_owner(params = {}) ⇒ Object



9
10
11
12
# File 'lib/investolink/issuer.rb', line 9

def new_owner(params={})
  response, api_key, api_token = Investolink.request(:post, new_ownership_url(id), @api_key, @api_token, params)
  Util.convert_to_investolink_object(response, api_key, api_token)
end

#ownerships(params = {}) ⇒ Object



4
5
6
7
# File 'lib/investolink/issuer.rb', line 4

def ownerships(params={})
  response, api_key, api_token = Investolink.request(:get, ownership_url, @api_key, @api_token, params)
  Util.convert_to_investolink_object(response, api_key, api_token)
end