Class: CoinSync::Transaction::ConvertedAmounts

Inherits:
Object
  • Object
show all
Includes:
Amounts
Defined in:
lib/coinsync/transaction.rb

Instance Attribute Summary collapse

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

Parameters:

  • value

    the value to set the attribute bought_amount to.



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

Parameters:

  • value

    the value to set the attribute bought_currency to.



77
78
79
# File 'lib/coinsync/transaction.rb', line 77

def bought_currency=(value)
  @bought_currency = value
end

#exchange_rateObject

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

Parameters:

  • value

    the value to set the attribute sold_amount to.



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

Parameters:

  • value

    the value to set the attribute sold_currency to.



77
78
79
# File 'lib/coinsync/transaction.rb', line 77

def sold_currency=(value)
  @sold_currency = value
end