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.2'
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.
105 106 107 108 |
# File 'lib/zabbix/client/client.rb', line 105 def initialize(url, = {}) @url = URI.parse(url) @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
103 104 105 |
# File 'lib/zabbix/client/client.rb', line 103 def auth @auth end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
102 103 104 |
# File 'lib/zabbix/client/client.rb', line 102 def @options end |
#url ⇒ Object (readonly)
Method
101 102 103 |
# File 'lib/zabbix/client/client.rb', line 101 def url @url end |