Class: Casper::Entity::ValidatorWeight

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

Overview

A validator’s weight.

Instance Method Summary collapse

Constructor Details

#initialize(public_key, weight) ⇒ ValidatorWeight

Returns a new instance of ValidatorWeight.

Parameters:

  • public_key (String)
  • weight (String)
[View source]

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_keyString

Returns public_key.

Returns:

  • (String)

    public_key

[View source]

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

def get_public_key
  @public_key
end

#get_weightString

Returns weight.

Returns:

  • (String)

    weight

[View source]

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

def get_weight
  @weight
end