Class: Nem::Model::ProvisionNamespaceTransaction

Inherits:
Transaction
  • Object
show all
Defined in:
lib/nem/model/provision_namespace_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

#new_partObject (readonly)

Returns the value of attribute new_part.



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

def new_part
  @new_part
end

#parentObject (readonly)

Returns the value of attribute parent.



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

def parent
  @parent
end

#rental_feeObject (readonly)

Returns the value of attribute rental_fee.



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

def rental_fee
  @rental_fee
end

#rental_fee_sinkObject (readonly)

Returns the value of attribute rental_fee_sink.



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

def rental_fee_sink
  @rental_fee_sink
end

Class Method Details

.new_from_transaction_meta_data_pair(hash) ⇒ Object



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

def self.(hash)
  transaction = hash[:transaction]
  attrs = (hash).merge(
    rental_fee: transaction[:rentalFee],
    rental_fee_sink: transaction[:rentalFeeSink],
    parent: transaction[:parent],
    new_part: transaction[:newPart]
  )
  new(attrs)
end