Class: Investolink::Issue

Inherits:
Resource show all
Includes:
Operations::Create, Operations::Update
Defined in:
lib/investolink/issue.rb

Instance Attribute Summary

Attributes inherited from InvestolinkObject

#api_key, #api_token

Instance Method Summary collapse

Methods included from Operations::Update

#save

Methods included from Operations::Create

included

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_transaction(params) ⇒ Object



11
12
13
14
# File 'lib/investolink/issue.rb', line 11

def new_transaction(params)
  response, api_key, api_token = Investolink.request(:post, new_transaction_url(id), @api_key, @api_token, params)
  Util.convert_to_investolink_object(response, api_key, api_token)
end

#transactions(params = {}) ⇒ Object



6
7
8
9
# File 'lib/investolink/issue.rb', line 6

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