Class: Zabbix::Client
- Inherits:
-
Object
- Object
- Zabbix::Client
- Defined in:
- lib/zabbix/client/version.rb,
lib/zabbix/client/client.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.0.7'
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Method.
Instance Method Summary collapse
-
#initialize(url, options = {}) ⇒ Client
constructor
A new instance of Client.
- #method_missing(method_name) ⇒ Object
Constructor Details
#initialize(url, options = {}) ⇒ Client
Returns a new instance of Client.
120 121 122 123 |
# File 'lib/zabbix/client/client.rb', line 120 def initialize(url, = {}) @url = URI.parse(url) = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object
125 126 127 |
# File 'lib/zabbix/client/client.rb', line 125 def method_missing(method_name) Zabbix::Client::Method.new(method_name, self) end |
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
118 119 120 |
# File 'lib/zabbix/client/client.rb', line 118 def auth @auth end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
117 118 119 |
# File 'lib/zabbix/client/client.rb', line 117 def end |
#url ⇒ Object (readonly)
Method
116 117 118 |
# File 'lib/zabbix/client/client.rb', line 116 def url @url end |