Class: DashingContrib::Nagios::Client
- Inherits:
-
Object
- Object
- DashingContrib::Nagios::Client
- Defined in:
- lib/dashing-contrib/bottles/nagios/client.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #status(options = {}) ⇒ Object
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( = {}) @client = NagiosHarder::Site.new([:endpoint], [:username], [:password], [:version], [:time_format], [:verify_ssl]) end |
Instance Attribute Details
#client ⇒ Object (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( = {}) ::DashingContrib::Nagios::Status.fetch(client, ) end |