class Nem::Model::Experience

Constants

ExperienceData

Attributes

experience[R]
node[R]
syncs[R]

Public Class Methods

new_from_experience(hash) click to toggle source
# File lib/nem/model/experience.rb, line 10
def self.new_from_experience(hash)
  exp = hash[:experience]
  new(
    node: Nem::Model::Node.new_from_node(hash[:node]),
    syncs: hash[:syncs],
    experience: ExperienceData.new(exp[:s], exp[:f])
  )
end