Class: BitFlyer::Models::Execution
- Inherits:
-
Object
- Object
- BitFlyer::Models::Execution
- Defined in:
- lib/bit_flyer/models/execution.rb
Instance Attribute Summary collapse
-
#buy_child_order_acceptance_id ⇒ Object
readonly
Returns the value of attribute buy_child_order_acceptance_id.
-
#exec_date ⇒ Object
readonly
Returns the value of attribute exec_date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#sell_child_order_acceptance_id ⇒ Object
readonly
Returns the value of attribute sell_child_order_acceptance_id.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Execution
constructor
A new instance of Execution.
Constructor Details
#initialize(attrs = {}) ⇒ Execution
Returns a new instance of Execution.
6 7 8 9 10 11 12 13 14 |
# File 'lib/bit_flyer/models/execution.rb', line 6 def initialize(attrs = {}) @id = attrs['id'] @side = attrs['side'] @price = attrs['price'] @size = attrs['size'] @exec_date = Time.parse(attrs['exec_date']).in_time_zone('Tokyo') @buy_child_order_acceptance_id = attrs['buy_child_order_acceptance_id'] @sell_child_order_acceptance_id = attrs['sell_child_order_acceptance_id'] end |
Instance Attribute Details
#buy_child_order_acceptance_id ⇒ Object (readonly)
Returns the value of attribute buy_child_order_acceptance_id.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def buy_child_order_acceptance_id @buy_child_order_acceptance_id end |
#exec_date ⇒ Object (readonly)
Returns the value of attribute exec_date.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def exec_date @exec_date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def id @id end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def price @price end |
#sell_child_order_acceptance_id ⇒ Object (readonly)
Returns the value of attribute sell_child_order_acceptance_id.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def sell_child_order_acceptance_id @sell_child_order_acceptance_id end |
#side ⇒ Object (readonly)
Returns the value of attribute side.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def side @side end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
4 5 6 |
# File 'lib/bit_flyer/models/execution.rb', line 4 def size @size end |