Class: Casper::Entity::AssociatedKey
- Inherits:
-
Object
- Object
- Casper::Entity::AssociatedKey
- Defined in:
- lib/entity/associated_key.rb
Instance Method Summary collapse
-
#get_account_hash ⇒ CLAccountHash
Account hash of associated key.
-
#get_weight ⇒ Integer
Weight of an associated key.
-
#initialize(account_hash, weight) ⇒ AssociatedKey
constructor
A new instance of AssociatedKey.
Constructor Details
#initialize(account_hash, weight) ⇒ AssociatedKey
Returns a new instance of AssociatedKey.
8 9 10 11 |
# File 'lib/entity/associated_key.rb', line 8 def initialize(account_hash, weight) @account_hash = account_hash @weight = weight end |
Instance Method Details
#get_account_hash ⇒ CLAccountHash
Returns account hash of associated key.
14 15 16 |
# File 'lib/entity/associated_key.rb', line 14 def get_account_hash @account_hash end |
#get_weight ⇒ Integer
Returns weight of an associated key.
19 20 21 |
# File 'lib/entity/associated_key.rb', line 19 def get_weight @weight end |