Class: Nis::Struct::NemAnnounceResult

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/nem_announce_result.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#codeString

Returns the current value of code.

Returns:

  • (String)

    the current value of code



8
9
10
# File 'lib/nis/struct/nem_announce_result.rb', line 8

def code
  @code
end

#innerTransactionHashString Also known as: inner_transaction_hash

Returns the current value of innerTransactionHash.

Returns:

  • (String)

    the current value of innerTransactionHash



8
9
10
# File 'lib/nis/struct/nem_announce_result.rb', line 8

def innerTransactionHash
  @innerTransactionHash
end

#messageString

Returns the current value of message.

Returns:

  • (String)

    the current value of message



8
9
10
# File 'lib/nis/struct/nem_announce_result.rb', line 8

def message
  @message
end

#transactionHashString Also known as: transaction_hash

Returns the current value of transactionHash.

Returns:

  • (String)

    the current value of transactionHash



8
9
10
# File 'lib/nis/struct/nem_announce_result.rb', line 8

def transactionHash
  @transactionHash
end

#typeString

Returns the current value of type.

Returns:

  • (String)

    the current value of type



8
9
10
# File 'lib/nis/struct/nem_announce_result.rb', line 8

def type
  @type
end

Class Method Details

.build(attrs) ⇒ Object



15
16
17
18
19
# File 'lib/nis/struct/nem_announce_result.rb', line 15

def self.build(attrs)
  attrs[:transactionHash] = Nis::Unit::Hash.new(attrs[:transactionHash][:data])
  attrs[:innerTransactionHash] = Nis::Unit::Hash.new(attrs[:innerTransactionHash][:data])
  new(attrs)
end