Class: OffTheGrid::Host

Inherits:
Object
  • Object
show all
Includes:
GridResource
Defined in:
lib/off_the_grid/host.rb

Overview

A base class for all SGE Host-type classes

Direct Known Subclasses

AdminHost, ExecuteHost, SubmitHost

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostnameObject (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

#nameObject



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