Class: WavesRubyClient::OrderData::Cancel
- Inherits:
-
Object
- Object
- WavesRubyClient::OrderData::Cancel
- Includes:
- Conversion
- Defined in:
- lib/waves_ruby_client/order_data/cancel.rb
Overview
Data for cancelling an order
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
Instance Method Summary collapse
- #data_with_signature ⇒ Object
-
#initialize(order) ⇒ Cancel
constructor
A new instance of Cancel.
Methods included from Conversion::ClassMethods
#base58_to_bytes, #bytes_to_base58, #long_to_bytes
Constructor Details
#initialize(order) ⇒ Cancel
Returns a new instance of Cancel.
11 12 13 |
# File 'lib/waves_ruby_client/order_data/cancel.rb', line 11 def initialize(order) self.order = order end |
Instance Attribute Details
#order ⇒ Object
Returns the value of attribute order.
9 10 11 |
# File 'lib/waves_ruby_client/order_data/cancel.rb', line 9 def order @order end |
Instance Method Details
#data_with_signature ⇒ Object
15 16 17 18 19 |
# File 'lib/waves_ruby_client/order_data/cancel.rb', line 15 def data_with_signature { sender: WavesRubyClient::WAVES_PUBLIC_KEY, orderId: order.id, signature: signature } end |