Class: BTCT::Quote

Inherits:
Object
  • Object
show all
Defined in:
lib/btct/quote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(price, amount, exchange) ⇒ Quote

Returns a new instance of Quote.



5
6
7
# File 'lib/btct/quote.rb', line 5

def initialize(price, amount, exchange)
  @price, @amount, @exchange = price.to_f, amount.to_f, exchange
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



3
4
5
# File 'lib/btct/quote.rb', line 3

def amount
  @amount
end

#exchangeObject (readonly)

Returns the value of attribute exchange.



3
4
5
# File 'lib/btct/quote.rb', line 3

def exchange
  @exchange
end

#priceObject (readonly)

Returns the value of attribute price.



3
4
5
# File 'lib/btct/quote.rb', line 3

def price
  @price
end