Class: Casper::Entity::EraValidator

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

Overview

Validator and weights for an Era.

Instance Method Summary collapse

Constructor Details

#initialize(era_id, validator_weights) ⇒ EraValidator

Returns a new instance of EraValidator.

Parameters:



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_idInteger

Returns era_id.

Returns:

  • (Integer)

    era_id



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

def get_era_id
  @era_id
end

#get_validator_weightsArray<ValidatorWeight>

Returns validator_weights.

Returns:



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

def get_validator_weights
  @validator_weights
end