Class: Cryptoexchange::Models::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoexchange/models/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Order

Returns a new instance of Order.



6
7
8
9
10
# File 'lib/cryptoexchange/models/order.rb', line 6

def initialize(args={})
  @price      = args[:price]
  @amount     = args[:amount]
  @timestamp  = args[:timestamp] || nil
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/cryptoexchange/models/order.rb', line 4

def amount
  @amount
end

#priceObject

Returns the value of attribute price.



4
5
6
# File 'lib/cryptoexchange/models/order.rb', line 4

def price
  @price
end

#timestampObject

Returns the value of attribute timestamp.



4
5
6
# File 'lib/cryptoexchange/models/order.rb', line 4

def timestamp
  @timestamp
end