Class: BitexApiWrapper::Order
- Inherits:
-
Struct
- Object
- Struct
- BitexApiWrapper::Order
- Defined in:
- lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#price ⇒ Object
Returns the value of attribute price.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #method_missing(method_name, *args, &block) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 12 def method_missing(method_name, *args, &block) raw.respond_to?(method_name) ? raw.send(method_name, *args, &block) : super end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def amount @amount end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def id @id end |
#price ⇒ Object
Returns the value of attribute price
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def price @price end |
#raw ⇒ Object
Returns the value of attribute raw
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def raw @raw end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4 def type @type end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
16 17 18 |
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 16 def respond_to_missing?(method_name, include_private = false) raw.respond_to?(method_name) || super end |