Class: CoinSync::Currency
- Inherits:
-
Struct
- Object
- Struct
- CoinSync::Currency
- Defined in:
- lib/coinsync/currencies.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute 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 |