Class: Nem::Model::NemAnnounceResult

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/nem_announce_result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/nem/model/nem_announce_result.rb', line 6

def code
  @code
end

#inner_transaction_hashObject (readonly)

Returns the value of attribute inner_transaction_hash.



6
7
8
# File 'lib/nem/model/nem_announce_result.rb', line 6

def inner_transaction_hash
  @inner_transaction_hash
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/nem/model/nem_announce_result.rb', line 6

def message
  @message
end

#transaction_hashObject (readonly)

Returns the value of attribute transaction_hash.



6
7
8
# File 'lib/nem/model/nem_announce_result.rb', line 6

def transaction_hash
  @transaction_hash
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/nem/model/nem_announce_result.rb', line 6

def type
  @type
end

Class Method Details

.new_from_nem_announce_result(hash) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/nem/model/nem_announce_result.rb', line 8

def self.new_from_nem_announce_result(hash)
  new(
    type: hash[:type],
    code: hash[:code],
    message: hash[:message],
    transaction_hash: hash[:transactionHash][:data],
    inner_transaction_hash: hash[:innerTransactionHash][:data]
  )
end