Class: CrowdPay::Asset
- Inherits:
-
Object
- Object
- CrowdPay::Asset
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
- Defined in:
- lib/crowd_pay/asset.rb
Constant Summary
Constants included from CrowdPay
Instance Attribute Summary collapse
-
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
-
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
-
#cusip_number ⇒ Object
Returns the value of attribute cusip_number.
-
#description ⇒ Object
Returns the value of attribute description.
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#interest_frequency ⇒ Object
Returns the value of attribute interest_frequency.
-
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
-
#interest_type ⇒ Object
Returns the value of attribute interest_type.
-
#market_value ⇒ Object
Returns the value of attribute market_value.
-
#maturity_date ⇒ Object
Returns the value of attribute maturity_date.
-
#number ⇒ Object
Returns the value of attribute number.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#sold_date ⇒ Object
Returns the value of attribute sold_date.
-
#term ⇒ Object
Returns the value of attribute term.
-
#third_party_asset_number ⇒ Object
Returns the value of attribute third_party_asset_number.
Class Method Summary collapse
Methods included from CrowdPay
Instance Attribute Details
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def cost_basis @cost_basis end |
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def created_by_ip_address @created_by_ip_address end |
#cusip_number ⇒ Object
Returns the value of attribute cusip_number.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def cusip_number @cusip_number end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def description @description end |
#effective_date ⇒ Object
Returns the value of attribute effective_date.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def effective_date @effective_date end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def id @id end |
#interest_frequency ⇒ Object
Returns the value of attribute interest_frequency.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def interest_frequency @interest_frequency end |
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def interest_rate @interest_rate end |
#interest_type ⇒ Object
Returns the value of attribute interest_type.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def interest_type @interest_type end |
#market_value ⇒ Object
Returns the value of attribute market_value.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def market_value @market_value end |
#maturity_date ⇒ Object
Returns the value of attribute maturity_date.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def maturity_date @maturity_date end |
#number ⇒ Object
Returns the value of attribute number.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def number @number end |
#quantity ⇒ Object
Returns the value of attribute quantity.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def quantity @quantity end |
#sold_date ⇒ Object
Returns the value of attribute sold_date.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def sold_date @sold_date end |
#term ⇒ Object
Returns the value of attribute term.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def term @term end |
#third_party_asset_number ⇒ Object
Returns the value of attribute third_party_asset_number.
9 10 11 |
# File 'lib/crowd_pay/asset.rb', line 9 def third_party_asset_number @third_party_asset_number end |
Class Method Details
.find(account_id, id) ⇒ Object
14 15 16 17 18 |
# File 'lib/crowd_pay/asset.rb', line 14 def self.find(account_id, id) url = "Crowdfunding/api/Account/#{account_id}/Assets/#{id}" response = get(url) parse(response) end |
.find_with_transactions(account_id, id) ⇒ Object
20 21 22 23 24 |
# File 'lib/crowd_pay/asset.rb', line 20 def self.find_with_transactions(account_id, id) url = "Crowdfunding/api/Account/#{account_id}/Assets/#{id}/Transactions" response = get(url) parse(response) end |