Class: Casper::Entity::AssociatedKey

Inherits:
Object
  • Object
show all
Defined in:
lib/entity/associated_key.rb

Overview

A key granted limited permissions to an Account, for purposes such as multisig.

Instance Method Summary collapse

Constructor Details

#initialize(account_hash, weight) ⇒ AssociatedKey

Returns a new instance of AssociatedKey.

Parameters:

  • account_hash (CLAccountHash)
  • weight (Integer)


8
9
10
11
# File 'lib/entity/associated_key.rb', line 8

def initialize(, weight)
  @account_hash = 
  @weight = weight
end

Instance Method Details

#get_account_hashCLAccountHash

Returns account hash of associated key.

Returns:

  • (CLAccountHash)

    account hash of associated key



14
15
16
# File 'lib/entity/associated_key.rb', line 14

def 
  @account_hash
end

#get_weightInteger

Returns weight of an associated key.

Returns:

  • (Integer)

    weight of an associated key.



19
20
21
# File 'lib/entity/associated_key.rb', line 19

def get_weight
  @weight
end