Class: Xooa::Response::QueryResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/xooa/response/QueryResponse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Object

Initialize QueryResponse

Parameters:

  • payload

    payload received from the blockchain



27
28
29
# File 'lib/xooa/response/QueryResponse.rb', line 27

def initialize(payload)
  @payload = payload
end

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



21
22
23
# File 'lib/xooa/response/QueryResponse.rb', line 21

def payload
  @payload
end

Instance Method Details

#displayObject

display the details for the QueryResponse



32
33
34
# File 'lib/xooa/response/QueryResponse.rb', line 32

def display
  puts("Payload - #{@payload}")
end