Class: Zabbix::Api::OpenStruct
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Zabbix::Api::OpenStruct
- Defined in:
- lib/zabbix/api/client.rb
Overview
Subclass of OpenStruct adds some niceties for REPL etc
Constant Summary collapse
- @@prettymode =
If true, inspect returns awesome_inspect instead of default
false
Class Method Summary collapse
-
.prettymode ⇒ Object
returns current value of prettymode.
-
.prettymode=(aBool) ⇒ Object
sets prettymod to aBool.
Instance Method Summary collapse
Class Method Details
.prettymode ⇒ Object
returns current value of prettymode
60 61 62 |
# File 'lib/zabbix/api/client.rb', line 60 def prettymode @@prettymode end |
.prettymode=(aBool) ⇒ Object
sets prettymod to aBool
66 67 68 |
# File 'lib/zabbix/api/client.rb', line 66 def prettymode=(aBool) @@prettymode = aBool end |
Instance Method Details
#inspect ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/zabbix/api/client.rb', line 71 def inspect if @@prettymode awesome_inspect else super end end |