Class: CrowdPay::Asset

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
Defined in:
lib/crowd_pay/asset.rb

Constant Summary

Constants included from CrowdPay

VERSION

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from CrowdPay

included

Instance Attribute Details

#cost_basisObject

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_addressObject

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_numberObject

Returns the value of attribute cusip_number.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def cusip_number
  @cusip_number
end

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def description
  @description
end

#effective_dateObject

Returns the value of attribute effective_date.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def effective_date
  @effective_date
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def id
  @id
end

#interest_frequencyObject

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_rateObject

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_typeObject

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_valueObject

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_dateObject

Returns the value of attribute maturity_date.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def maturity_date
  @maturity_date
end

#numberObject

Returns the value of attribute number.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def number
  @number
end

#quantityObject

Returns the value of attribute quantity.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def quantity
  @quantity
end

#sold_dateObject

Returns the value of attribute sold_date.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def sold_date
  @sold_date
end

#termObject

Returns the value of attribute term.



9
10
11
# File 'lib/crowd_pay/asset.rb', line 9

def term
  @term
end

#third_party_asset_numberObject

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(, id)
  url = "Crowdfunding/api/Account/#{}/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(, id)
  url = "Crowdfunding/api/Account/#{}/Assets/#{id}/Transactions"
  response = get(url)
  parse(response)
end