Class: Nem::Model::MultisigInfo

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/multisig_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#cosignatories_countObject (readonly)

Returns the value of attribute cosignatories_count.



6
7
8
# File 'lib/nem/model/multisig_info.rb', line 6

def cosignatories_count
  @cosignatories_count
end

#min_cosignatoriesObject (readonly)

Returns the value of attribute min_cosignatories.



6
7
8
# File 'lib/nem/model/multisig_info.rb', line 6

def min_cosignatories
  @min_cosignatories
end

Class Method Details

.new_from_multisig_info(hash) ⇒ Object



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

def self.new_from_multisig_info(hash)
  new(
    cosignatories_count: hash[:cosignatoriesCount],
    min_cosignatories: hash[:minCosignatories]
  )
end