Class: Pan_host

Inherits:
Object
  • Object
show all
Defined in:
rlib/pan_host.rb

Overview

Hold details of a host in a rack

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Pan_host) initialize(hostname, ipV4_p, ipV4_m, location, ibm_rack_name, rack_u)

Create a Pan_host class



12
13
14
# File 'rlib/pan_host.rb', line 12

def initialize( hostname, ipV4_p, ipV4_m, location, ibm_rack_name, rack_u )
  @hostname, @ipV4_p, @ipV4_m, @location, @ibm_rack_name, @rack_u = hostname, ipV4_p, ipV4_m, location, ibm_rack_name, rack_u
end

Instance Attribute Details

- (Object) hostname

Returns the value of attribute hostname



3
4
5
# File 'rlib/pan_host.rb', line 3

def hostname
  @hostname
end

- (Object) ibm_rack_name

Returns the value of attribute ibm_rack_name



7
8
9
# File 'rlib/pan_host.rb', line 7

def ibm_rack_name
  @ibm_rack_name
end

- (Object) ipV4_m

Returns the value of attribute ipV4_m



4
5
6
# File 'rlib/pan_host.rb', line 4

def ipV4_m
  @ipV4_m
end

- (Object) ipV4_p

Returns the value of attribute ipV4_p



5
6
7
# File 'rlib/pan_host.rb', line 5

def ipV4_p
  @ipV4_p
end

- (Object) location

Returns the value of attribute location



6
7
8
# File 'rlib/pan_host.rb', line 6

def location
  @location
end

- (Object) rack_u

Returns the value of attribute rack_u



8
9
10
# File 'rlib/pan_host.rb', line 8

def rack_u
  @rack_u
end