Class: Nem::Model::NisInfo

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/nis_node_info.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/nis_node_info.rb', line 6

def application
  @application
end

#current_timeObject (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

#signerObject (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_timeObject (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

#versionObject (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