Class: Figo::Security
Overview
Object representing a Payment
Instance Attribute Summary collapse
-
#account_id ⇒ String
Internal figo Connect account ID.
-
#amount ⇒ DecNum
Order amount.
-
#amount_original_currency ⇒ Number
Monetary value in trading currency.
-
#creation_timestamp ⇒ Date
Internal creation timestamp on the figo Connect server.
-
#currency ⇒ String
Three-character currency code.
-
#exchange_rate ⇒ Number
Exchange rate between trading and account currency.
-
#isin ⇒ String
International Securities Identification Number.
-
#modification_timestamp ⇒ Date
Internal modification timestamp on the figo.
-
#name ⇒ String
Name of creditor or debtor.
-
#price ⇒ Number
Current price.
-
#price_currency ⇒ String
Currency of current price.
-
#purchase_price ⇒ Number
Purchase price.
-
#purchase_price_currency ⇒ String
Currency of purchase price.
-
#quantity ⇒ Number
Number of pieces or value.
-
#security_id ⇒ String
Internal figo Connect security ID.
-
#trade_timestamp ⇒ Date
Trading timestamp.
-
#visited ⇒ Boolean
This flag indicates whether the security has already been marked as visited by the user.
-
#wkn ⇒ String
Wertpapierkennnummer (if available).
Instance Method Summary collapse
-
#initialize(session, json) ⇒ Security
constructor
A new instance of Security.
Methods inherited from Base
Constructor Details
#initialize(session, json) ⇒ Security
Returns a new instance of Security.
7 8 9 |
# File 'lib/security/model.rb', line 7 def initialize(session, json) super(session, json) end |
Instance Attribute Details
#account_id ⇒ String
Internal figo Connect account ID
29 30 31 |
# File 'lib/security/model.rb', line 29 def account_id @account_id end |
#amount ⇒ DecNum
Order amount
17 18 19 |
# File 'lib/security/model.rb', line 17 def amount @amount end |
#amount_original_currency ⇒ Number
Monetary value in trading currency
45 46 47 |
# File 'lib/security/model.rb', line 45 def amount_original_currency @amount_original_currency end |
#creation_timestamp ⇒ Date
Internal creation timestamp on the figo Connect server
77 78 79 |
# File 'lib/security/model.rb', line 77 def @creation_timestamp end |
#currency ⇒ String
Three-character currency code
21 22 23 |
# File 'lib/security/model.rb', line 21 def currency @currency end |
#exchange_rate ⇒ Number
Exchange rate between trading and account currency
49 50 51 |
# File 'lib/security/model.rb', line 49 def exchange_rate @exchange_rate end |
#isin ⇒ String
International Securities Identification Number
33 34 35 |
# File 'lib/security/model.rb', line 33 def isin @isin end |
#modification_timestamp ⇒ Date
Internal modification timestamp on the figo
81 82 83 |
# File 'lib/security/model.rb', line 81 def @modification_timestamp end |
#name ⇒ String
Name of creditor or debtor
13 14 15 |
# File 'lib/security/model.rb', line 13 def name @name end |
#price ⇒ Number
Current price
53 54 55 |
# File 'lib/security/model.rb', line 53 def price @price end |
#price_currency ⇒ String
Currency of current price
57 58 59 |
# File 'lib/security/model.rb', line 57 def price_currency @price_currency end |
#purchase_price ⇒ Number
Purchase price
61 62 63 |
# File 'lib/security/model.rb', line 61 def purchase_price @purchase_price end |
#purchase_price_currency ⇒ String
Currency of purchase price
65 66 67 |
# File 'lib/security/model.rb', line 65 def purchase_price_currency @purchase_price_currency end |
#quantity ⇒ Number
Number of pieces or value
41 42 43 |
# File 'lib/security/model.rb', line 41 def quantity @quantity end |
#security_id ⇒ String
Internal figo Connect security ID
25 26 27 |
# File 'lib/security/model.rb', line 25 def security_id @security_id end |
#trade_timestamp ⇒ Date
Trading timestamp
73 74 75 |
# File 'lib/security/model.rb', line 73 def @trade_timestamp end |
#visited ⇒ Boolean
This flag indicates whether the security has already been marked as visited by the user
69 70 71 |
# File 'lib/security/model.rb', line 69 def visited @visited end |
#wkn ⇒ String
Wertpapierkennnummer (if available)
37 38 39 |
# File 'lib/security/model.rb', line 37 def wkn @wkn end |