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
58 59 60 |
# File 'lib/zabbix/api/client.rb', line 58 def prettymode @@prettymode end |
.prettymode=(aBool) ⇒ Object
sets prettymod to aBool
64 65 66 |
# File 'lib/zabbix/api/client.rb', line 64 def prettymode=(aBool) @@prettymode = aBool end |
Instance Method Details
#inspect ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/zabbix/api/client.rb', line 69 def inspect if @@prettymode awesome_inspect else super end end |