Class: BitFlyer::Models::Boards::Bid
- Inherits:
-
Object
- Object
- BitFlyer::Models::Boards::Bid
- Defined in:
- lib/bit_flyer/models/boards/bid.rb
Instance Attribute Summary collapse
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(params) ⇒ Bid
constructor
A new instance of Bid.
Constructor Details
#initialize(params) ⇒ Bid
Returns a new instance of Bid.
7 8 9 10 |
# File 'lib/bit_flyer/models/boards/bid.rb', line 7 def initialize(params) @price = params['price'] @size = params['size'] end |
Instance Attribute Details
#price ⇒ Object (readonly)
Returns the value of attribute price.
5 6 7 |
# File 'lib/bit_flyer/models/boards/bid.rb', line 5 def price @price end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
5 6 7 |
# File 'lib/bit_flyer/models/boards/bid.rb', line 5 def size @size end |