Class: Nis::Struct::TimeSynchronizationResult
- Inherits:
-
Object
- Object
- Nis::Struct::TimeSynchronizationResult
- Includes:
- Util::Assignable
- Defined in:
- lib/nis/struct/time_synchronization_result.rb
Overview
Instance Attribute Summary collapse
-
#change ⇒ Integer
The current value of change.
-
#currentTimeOffset ⇒ Integer
(also: #current_time_offset)
The current value of currentTimeOffset.
-
#dateTime ⇒ Time
(also: #datetime)
The current value of dateTime.
Class Method Summary collapse
Methods included from Util::Assignable
#[], #initialize, #to_hash, #to_json
Instance Attribute Details
#change ⇒ Integer
Returns the current value of change.
6 7 8 |
# File 'lib/nis/struct/time_synchronization_result.rb', line 6 def change @change end |
#currentTimeOffset ⇒ Integer Also known as: current_time_offset
Returns the current value of currentTimeOffset.
6 7 8 |
# File 'lib/nis/struct/time_synchronization_result.rb', line 6 def currentTimeOffset @currentTimeOffset end |
#dateTime ⇒ Time Also known as: datetime
Returns the current value of dateTime.
6 7 8 |
# File 'lib/nis/struct/time_synchronization_result.rb', line 6 def dateTime @dateTime end |
Class Method Details
.build(attrs) ⇒ Object
15 16 17 18 |
# File 'lib/nis/struct/time_synchronization_result.rb', line 15 def self.build(attrs) attrs[:dateTime] = Time.parse(attrs[:dateTime]) new(attrs) end |