Class: Nem::Model::ImportanceTransferTransaction

Inherits:
Transaction
  • Object
show all
Defined in:
lib/nem/model/importance_transfer_transaction.rb

Instance Attribute Summary collapse

Attributes inherited from Transaction

#deadline, #fee, #hash, #height, #id, #signer, #timestamp, #type, #version

Class Method Summary collapse

Methods inherited from Transaction

new_from_account_transaction, new_from_account_transaction_meta_data_pair

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#modeObject (readonly)

Returns the value of attribute mode.



4
5
6
# File 'lib/nem/model/importance_transfer_transaction.rb', line 4

def mode
  @mode
end

#remote_accountObject (readonly)

Returns the value of attribute remote_account.



4
5
6
# File 'lib/nem/model/importance_transfer_transaction.rb', line 4

def 
  @remote_account
end

Class Method Details

.new_from_transaction_meta_data_pair(hash) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/nem/model/importance_transfer_transaction.rb', line 6

def self.(hash)
  transaction = hash[:transaction]
  attrs = (hash).merge(
    mode: transaction[:mode],
    remote_account: transaction[:remoteAccount]
  )
  new(attrs)
end