Class: Nem::Transaction::MultisigCosignatoryModification

Inherits:
Object
  • Object
show all
Defined in:
lib/nem/transaction/multisig_cosignatory_modification.rb

Constant Summary collapse

TYPE_ADD =
0x001
TYPE_REMOVE =
0x002

Instance Attribute Summary collapse

Instance Method Summary collapse

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_accountInterger

Returns the current value of cosignatory_account.

Returns:

  • (Interger)

    the current value of cosignatory_account



5
6
7
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 5

def 
  @cosignatory_account
end

#modification_typeInterger

Returns the current value of modification_type.

Returns:

  • (Interger)

    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_hashHash

attributes must be CAMEL CASE for NIS params

Returns:

  • (Hash)


18
19
20
21
22
23
# File 'lib/nem/transaction/multisig_cosignatory_modification.rb', line 18

def to_hash
  {
    modificationType: parse_type,
    cosignatoryAccount: 
  }
end