Class: TonSdk::Processing::ParamsOfWaitForTransaction

Inherits:
Object
  • Object
show all
Defined in:
lib/ton_sdk_client/processing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(abi: nil, message:, shard_block_id:, send_events:) ⇒ ParamsOfWaitForTransaction

Returns a new instance of ParamsOfWaitForTransaction.



49
50
51
52
53
54
# File 'lib/ton_sdk_client/processing.rb', line 49

def initialize(abi: nil, message:, shard_block_id:, send_events:)
  @abi = abi
  @message = message
  @shard_block_id = shard_block_id
  @send_events = send_events
end

Instance Attribute Details

#abiObject (readonly)

Returns the value of attribute abi.



47
48
49
# File 'lib/ton_sdk_client/processing.rb', line 47

def abi
  @abi
end

#messageObject (readonly)

Returns the value of attribute message.



47
48
49
# File 'lib/ton_sdk_client/processing.rb', line 47

def message
  @message
end

#send_eventsObject (readonly)

Returns the value of attribute send_events.



47
48
49
# File 'lib/ton_sdk_client/processing.rb', line 47

def send_events
  @send_events
end

#shard_block_idObject (readonly)

Returns the value of attribute shard_block_id.



47
48
49
# File 'lib/ton_sdk_client/processing.rb', line 47

def shard_block_id
  @shard_block_id
end

Instance Method Details

#to_hObject



56
57
58
59
60
61
62
63
# File 'lib/ton_sdk_client/processing.rb', line 56

def to_h
  {
    abi: abi&.to_h,
    message: message,
    shard_block_id: shard_block_id,
    send_events: send_events
  }
end