Class: Hikvision::System::Time

Inherits:
Base
  • Object
show all
Defined in:
lib/hikvision/system/time.rb,
lib/hikvision/system/time/ntp.rb

Defined Under Namespace

Classes: Ntp

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(isapi) ⇒ Time

Returns a new instance of Time.



14
15
16
17
# File 'lib/hikvision/system/time.rb', line 14

def initialize(isapi)
  @isapi = isapi
  @ntp = Ntp.new(isapi)
end

Instance Attribute Details

#ntpObject (readonly)

Returns the value of attribute ntp.



6
7
8
# File 'lib/hikvision/system/time.rb', line 6

def ntp
  @ntp
end

Class Method Details

.urlObject



9
10
11
# File 'lib/hikvision/system/time.rb', line 9

def url
  '/ISAPI/System/time'
end