Class: CoinSync::Currency

Inherits:
Struct
  • Object
show all
Defined in:
lib/coinsync/currencies.rb

Direct Known Subclasses

CryptoCurrency, FiatCurrency

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



2
3
4
# File 'lib/coinsync/currencies.rb', line 2

def code
  @code
end

Instance Method Details

#<=>(other) ⇒ Object



3
4
5
# File 'lib/coinsync/currencies.rb', line 3

def <=>(other)
  self.code <=> other.code
end