Class: OsCtl::Image::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/osctl/image/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_dir, name) ⇒ Test

Returns a new instance of Test.

Parameters:

  • dir (String)
  • name (String)


11
12
13
14
# File 'lib/osctl/image/test.rb', line 11

def initialize(base_dir, name)
  @base_dir = base_dir
  @name = name
end

Instance Attribute Details

#base_dirString (readonly)

Returns:

  • (String)


4
5
6
# File 'lib/osctl/image/test.rb', line 4

def base_dir
  @base_dir
end

#nameString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/osctl/image/test.rb', line 7

def name
  @name
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/osctl/image/test.rb', line 16

def to_s
  name
end