Class: DashingContrib::Nagios::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/dashing-contrib/bottles/nagios/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



8
9
10
# File 'lib/dashing-contrib/bottles/nagios/client.rb', line 8

def initialize(options = {})
  @client = NagiosHarder::Site.new(options[:endpoint], options[:username], options[:password], options[:version], options[:time_format], options[:verify_ssl])
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/dashing-contrib/bottles/nagios/client.rb', line 6

def client
  @client
end

Instance Method Details

#status(options = {}) ⇒ Object



12
13
14
# File 'lib/dashing-contrib/bottles/nagios/client.rb', line 12

def status(options = {})
  ::DashingContrib::Nagios::Status.fetch(client, options)
end