Class: Nem::Model::NisInfo
- Inherits:
-
Object
- Object
- Nem::Model::NisInfo
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/nis_node_info.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#current_time ⇒ Object
readonly
Returns the value of attribute current_time.
-
#signer ⇒ Object
readonly
Returns the value of attribute signer.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#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/nis_node_info.rb', line 6 def application @application end |
#current_time ⇒ Object (readonly)
Returns the value of attribute current_time.
6 7 8 |
# File 'lib/nem/model/nis_node_info.rb', line 6 def current_time @current_time end |
#signer ⇒ Object (readonly)
Returns the value of attribute signer.
6 7 8 |
# File 'lib/nem/model/nis_node_info.rb', line 6 def signer @signer end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
6 7 8 |
# File 'lib/nem/model/nis_node_info.rb', line 6 def start_time @start_time end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/nem/model/nis_node_info.rb', line 6 def version @version end |
Class Method Details
.new_from_nis_info(hash) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/nem/model/nis_node_info.rb', line 12 def self.new_from_nis_info(hash) new( current_time: hash[:currentTime], application: hash[:application], start_time: hash[:startTime], version: hash[:version], signer: hash[:signer] ) end |