Class: Casper::Entity::ValidatorWeight
- Inherits:
-
Object
- Object
- Casper::Entity::ValidatorWeight
- Defined in:
- lib/entity/validator_weight.rb
Overview
A validator’s weight.
Instance Method Summary collapse
-
#get_public_key ⇒ String
Public_key.
-
#get_weight ⇒ String
Weight.
-
#initialize(public_key, weight) ⇒ ValidatorWeight
constructor
A new instance of ValidatorWeight.
Constructor Details
#initialize(public_key, weight) ⇒ ValidatorWeight
Returns a new instance of ValidatorWeight.
8 9 10 11 |
# File 'lib/entity/validator_weight.rb', line 8 def initialize(public_key, weight) @public_key = public_key @weight = weight end |
Instance Method Details
#get_public_key ⇒ String
Returns public_key.
14 15 16 |
# File 'lib/entity/validator_weight.rb', line 14 def get_public_key @public_key end |
#get_weight ⇒ String
Returns weight.
19 20 21 |
# File 'lib/entity/validator_weight.rb', line 19 def get_weight @weight end |