Class: Filecoin::Types::PowerClaim
- Inherits:
-
Object
- Object
- Filecoin::Types::PowerClaim
- Extended by:
- ClassMethods
- Defined in:
- lib/filecoin/types/power_claim.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#quality_adjusted_power ⇒ Object
readonly
Returns the value of attribute quality_adjusted_power.
-
#raw_byte_power ⇒ Object
readonly
Returns the value of attribute raw_byte_power.
Instance Method Summary collapse
-
#initialize(quality_adjusted_power:, raw_byte_power:) ⇒ PowerClaim
constructor
raw_byte_power: Sum of raw byte power for a miner’s (or of all miners’) sectors quality_adjusted_power: Sum of quality adjusted power for a miner’s (or of all miners’) sectors.
Methods included from ClassMethods
Constructor Details
#initialize(quality_adjusted_power:, raw_byte_power:) ⇒ PowerClaim
raw_byte_power: Sum of raw byte power for a miner’s (or of all miners’) sectors quality_adjusted_power: Sum of quality adjusted power for a miner’s (or of all miners’) sectors.
19 20 21 22 |
# File 'lib/filecoin/types/power_claim.rb', line 19 def initialize(quality_adjusted_power:, raw_byte_power:) @quality_adjusted_power = quality_adjusted_power @raw_byte_power = raw_byte_power end |
Instance Attribute Details
#quality_adjusted_power ⇒ Object (readonly)
Returns the value of attribute quality_adjusted_power.
15 16 17 |
# File 'lib/filecoin/types/power_claim.rb', line 15 def quality_adjusted_power @quality_adjusted_power end |
#raw_byte_power ⇒ Object (readonly)
Returns the value of attribute raw_byte_power.
15 16 17 |
# File 'lib/filecoin/types/power_claim.rb', line 15 def raw_byte_power @raw_byte_power end |