Class: NSCA::Client::Host
- Inherits:
-
Object
- Object
- NSCA::Client::Host
- Defined in:
- lib/nsca/client/host.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(options) ⇒ Host
Returns a new instance of Host.
8 9 10 |
# File 'lib/nsca/client/host.rb', line 8 def initialize() @hostname = [:hostname] end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/nsca/client/host.rb', line 6 def hostname @hostname end |