Class: Nis::Struct::TimeSynchronizationResult

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/time_synchronization_result.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#changeInteger

Returns the current value of change

Returns:

  • (Integer)

    the current value of change


6
7
8
# File 'lib/nis/struct/time_synchronization_result.rb', line 6

def change
  @change
end

#currentTimeOffsetInteger Also known as: current_time_offset

Returns the current value of currentTimeOffset

Returns:

  • (Integer)

    the current value of currentTimeOffset


6
7
8
# File 'lib/nis/struct/time_synchronization_result.rb', line 6

def currentTimeOffset
  @currentTimeOffset
end

#dateTimeTime Also known as: datetime

Returns the current value of dateTime

Returns:

  • (Time)

    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