Module: Filecoin::Types::PowerClaim::ClassMethods
- Included in:
- Filecoin::Types::PowerClaim
- Defined in:
- lib/filecoin/types/power_claim.rb
Instance Method Summary collapse
Instance Method Details
#from_as_json(as_json) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/filecoin/types/power_claim.rb', line 5 def from_as_json(as_json) new( quality_adjusted_power: Integer(as_json["QualityAdjPower"]), raw_byte_power: Integer(as_json["RawBytePower"]), ) end |