Class: Nem::Model::Timesync

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#changeObject (readonly)

Returns the value of attribute change.



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

def change
  @change
end

#current_time_offsetObject (readonly)

Returns the value of attribute current_time_offset.



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

def current_time_offset
  @current_time_offset
end

#datetimeObject (readonly)

Returns the value of attribute datetime.



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

def datetime
  @datetime
end

Class Method Details

.new_from_timer(hash) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/nem/model/timesync.rb', line 10

def self.new_from_timer(hash)
  new(
    datetime: hash[:datetime],
    current_time_offset: hash[:current_time_offset],
    change: hash[:change]
  )
end