Method: Nem::Model::NodeMetadata.new_from_metadata

Defined in:
lib/nem/model/node.rb

.new_from_metadata(hash) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/nem/model/node.rb', line 13

def self.(hash)
  new(
    features: hash[:features],
    application: hash[:application],
    network_id: hash[:networkId],
    version: hash[:version],
    platform: hash[:platform]
  )
end