Class: Nem::Model::NemAnnounceResult
- Inherits:
-
Object
- Object
- Nem::Model::NemAnnounceResult
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/nem_announce_result.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#inner_transaction_hash ⇒ Object
readonly
Returns the value of attribute inner_transaction_hash.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#transaction_hash ⇒ Object
readonly
Returns the value of attribute transaction_hash.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#code ⇒ Object (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_hash ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/nem/model/nem_announce_result.rb', line 6 def @message end |
#transaction_hash ⇒ Object (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 |
#type ⇒ Object (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 |