Class: Nem::Model::NodeMetadata
- Inherits:
-
Object
- Object
- Nem::Model::NodeMetadata
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/node.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#features ⇒ Object
readonly
Returns the value of attribute features.
-
#network ⇒ Object
readonly
Returns the value of attribute network.
-
#network_id ⇒ Object
readonly
Returns the value of attribute network_id.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
6 7 8 |
# File 'lib/nem/model/node.rb', line 6 def application @application end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
6 7 8 |
# File 'lib/nem/model/node.rb', line 6 def features @features end |
#network ⇒ Object (readonly)
Returns the value of attribute network.
6 7 8 |
# File 'lib/nem/model/node.rb', line 6 def network @network end |
#network_id ⇒ Object (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 |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
6 7 8 |
# File 'lib/nem/model/node.rb', line 6 def platform @platform end |
#version ⇒ Object (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 |