Class: WavesRubyClient::OrderData::Place

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

Overview

Data for placing 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) ⇒ Place

Returns a new instance of Place.



11
12
13
# File 'lib/waves_ruby_client/order_data/place.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/place.rb', line 9

def order
  @order
end

Instance Method Details

#data_with_signatureObject



15
16
17
# File 'lib/waves_ruby_client/order_data/place.rb', line 15

def data_with_signature
  data.merge(proofs: [signature])
end