Class: WavesRubyClient::OrderData::Cancel

Inherits:
Object
  • Object
show all
Includes:
Conversion
Defined in:
lib/waves_ruby_client/order_data/cancel.rb

Overview

Data for cancelling an order

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#orderObject

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_signatureObject



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