Class: Filecoin::Types::PowerClaim

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/filecoin/types/power_claim.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassMethods

from_as_json

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_powerObject (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_powerObject (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