Class: Casper::Entity::EraValidator
- Inherits:
-
Object
- Object
- Casper::Entity::EraValidator
- Defined in:
- lib/entity/era_validator.rb
Overview
Validator and weights for an Era.
Instance Method Summary collapse
-
#get_era_id ⇒ Integer
Era_id.
-
#get_validator_weights ⇒ Array<ValidatorWeight>
Validator_weights.
-
#initialize(era_id, validator_weights) ⇒ EraValidator
constructor
A new instance of EraValidator.
Constructor Details
#initialize(era_id, validator_weights) ⇒ EraValidator
Returns a new instance of EraValidator.
8 9 10 11 |
# File 'lib/entity/era_validator.rb', line 8 def initialize(era_id, validator_weights) @era_id = era_id @validator_weights = validator_weights end |
Instance Method Details
#get_era_id ⇒ Integer
Returns era_id.
14 15 16 |
# File 'lib/entity/era_validator.rb', line 14 def get_era_id @era_id end |
#get_validator_weights ⇒ Array<ValidatorWeight>
Returns validator_weights.
19 20 21 |
# File 'lib/entity/era_validator.rb', line 19 def get_validator_weights @validator_weights end |