class Nem::Model::Node

Attributes

endpoint[R]
identity[R]
metadata[R]

Public Class Methods

new_from_node(hash) click to toggle source
# File lib/nem/model/node.rb, line 54
def self.new_from_node(hash)
  new(
    metadata: NodeMetadata.new_from_metadata(hash[:metaData]),
    endpoint: NodeEndpoint.new_from_endpoint(hash[:endpoint]),
    identity: NodeIdentity.new_from_identity(hash[:identity])
  )
end