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