Class: Nem::Model::NodeMetadata

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/node.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#applicationObject (readonly)

Returns the value of attribute application.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def application
  @application
end

#featuresObject (readonly)

Returns the value of attribute features.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def features
  @features
end

#networkObject (readonly)

Returns the value of attribute network.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def network
  @network
end

#network_idObject (readonly)

Returns the value of attribute network_id.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def network_id
  @network_id
end

#platformObject (readonly)

Returns the value of attribute platform.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def platform
  @platform
end

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/nem/model/node.rb', line 6

def version
  @version
end

Class Method Details

.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