Class: Nem::Transaction::MultisigCosignatoryModification
- Inherits:
-
Object
- Object
- Nem::Transaction::MultisigCosignatoryModification
- Defined in:
- lib/nem/transaction/multisig_cosignatory_modification.rb
Constant Summary collapse
- TYPE_ADD =
0x001
- TYPE_REMOVE =
0x002
Instance Attribute Summary collapse
-
#cosignatory_account ⇒ Interger
The current value of cosignatory_account.
-
#modification_type ⇒ Interger
The current value of modification_type.
Instance Method Summary collapse
-
#initialize(type, public_key) ⇒ MultisigCosignatoryModification
constructor
A new instance of MultisigCosignatoryModification.
-
#to_hash ⇒ Hash
attributes must be CAMEL CASE for NIS params.
Constructor Details
#initialize(type, public_key) ⇒ MultisigCosignatoryModification
Returns a new instance of MultisigCosignatoryModification.
11 12 13 14 |
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 11 def initialize(type, public_key) @modification_type = type @cosignatory_account = public_key end |
Instance Attribute Details
#cosignatory_account ⇒ Interger
Returns the current value of cosignatory_account.
5 6 7 |
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 5 def cosignatory_account @cosignatory_account end |
#modification_type ⇒ Interger
Returns the current value of modification_type.
5 6 7 |
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 5 def modification_type @modification_type end |
Instance Method Details
#to_hash ⇒ Hash
attributes must be CAMEL CASE for NIS params
18 19 20 21 22 23 |
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 18 def to_hash { modificationType: parse_type, cosignatoryAccount: cosignatory_account } end |