Class: Nem::Model::Harvest
- Inherits:
-
Object
- Object
- Nem::Model::Harvest
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/harvest.rb
Instance Attribute Summary collapse
-
#difficulty ⇒ Object
readonly
Returns the value of attribute difficulty.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#total_fee ⇒ Object
readonly
Returns the value of attribute total_fee.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#difficulty ⇒ Object (readonly)
Returns the value of attribute difficulty.
6 7 8 |
# File 'lib/nem/model/harvest.rb', line 6 def difficulty @difficulty end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
6 7 8 |
# File 'lib/nem/model/harvest.rb', line 6 def height @height end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/nem/model/harvest.rb', line 6 def id @id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/nem/model/harvest.rb', line 6 def @timestamp end |
#total_fee ⇒ Object (readonly)
Returns the value of attribute total_fee.
6 7 8 |
# File 'lib/nem/model/harvest.rb', line 6 def total_fee @total_fee end |
Class Method Details
.new_from_harvest(hash) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/nem/model/harvest.rb', line 12 def self.new_from_harvest(hash) new( timestamp: hash[:timeStamp], difficulty: hash[:difficulty], total_fee: hash[:totalFee], id: hash[:id], height: hash[:height] ) end |