Class: OffTheGrid::Host
- Inherits:
-
Object
- Object
- OffTheGrid::Host
- Includes:
- GridResource
- Defined in:
- lib/off_the_grid/host.rb
Overview
A base class for all SGE Host-type classes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Instance Method Summary collapse
-
#initialize(hostname) ⇒ Host
constructor
A new instance of Host.
- #name ⇒ Object
- #name=(hname) ⇒ Object
Methods included from GridResource
#<=>, #delete, #extract_detail, list, #new?, #save, #validate_before_delete, #validate_before_save
Constructor Details
#initialize(hostname) ⇒ Host
Returns a new instance of Host.
7 8 9 |
# File 'lib/off_the_grid/host.rb', line 7 def initialize(hostname) @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
4 5 6 |
# File 'lib/off_the_grid/host.rb', line 4 def hostname @hostname end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/off_the_grid/host.rb', line 11 def name hostname end |
#name=(hname) ⇒ Object
15 16 17 |
# File 'lib/off_the_grid/host.rb', line 15 def name=(hname) @hostname = hname end |