Class: CoinSync::Transaction::ConvertedAmounts
- Inherits:
-
Object
- Object
- CoinSync::Transaction::ConvertedAmounts
- Includes:
- Amounts
- Defined in:
- lib/coinsync/transaction.rb
Instance Attribute Summary collapse
-
#bought_amount ⇒ Object
writeonly
Sets the attribute bought_amount.
-
#bought_currency ⇒ Object
writeonly
Sets the attribute bought_currency.
-
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
-
#sold_amount ⇒ Object
writeonly
Sets the attribute sold_amount.
-
#sold_currency ⇒ Object
writeonly
Sets the attribute sold_currency.
Attributes included from Amounts
#bought_amount, #bought_currency, #sold_amount, #sold_currency
Method Summary
Methods included from Amounts
#crypto_amount, #crypto_currency, #fiat_amount, #fiat_currency, #price, #purchase?, #sale?, #swap?, #type
Instance Attribute Details
#bought_amount=(value) ⇒ Object (writeonly)
Sets the attribute bought_amount
77 78 79 |
# File 'lib/coinsync/transaction.rb', line 77 def bought_amount=(value) @bought_amount = value end |
#bought_currency=(value) ⇒ Object (writeonly)
Sets the attribute bought_currency
77 78 79 |
# File 'lib/coinsync/transaction.rb', line 77 def bought_currency=(value) @bought_currency = value end |
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
78 79 80 |
# File 'lib/coinsync/transaction.rb', line 78 def exchange_rate @exchange_rate end |
#sold_amount=(value) ⇒ Object (writeonly)
Sets the attribute sold_amount
77 78 79 |
# File 'lib/coinsync/transaction.rb', line 77 def sold_amount=(value) @sold_amount = value end |
#sold_currency=(value) ⇒ Object (writeonly)
Sets the attribute sold_currency
77 78 79 |
# File 'lib/coinsync/transaction.rb', line 77 def sold_currency=(value) @sold_currency = value end |