Class: TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/value_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ TestCase

Returns a new instance of TestCase.



6
7
8
9
10
11
12
13
14
15
# File 'lib/value_object.rb', line 6

def initialize(args)
  obj = OpenStruct.new(args)
  @name = obj.name
  @url = obj.url
  @headers = obj.headers || {}
  @type = obj.type || "GET"
  @data_path = obj.data_path
  @success = obj.success
  @debug = obj.debug
end

Instance Attribute Details

#data_pathObject

Returns the value of attribute data_path.



4
5
6
# File 'lib/value_object.rb', line 4

def data_path
  @data_path
end

#debugObject

Returns the value of attribute debug.



4
5
6
# File 'lib/value_object.rb', line 4

def debug
  @debug
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/value_object.rb', line 4

def headers
  @headers
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/value_object.rb', line 4

def name
  @name
end

#successObject

Returns the value of attribute success.



4
5
6
# File 'lib/value_object.rb', line 4

def success
  @success
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/value_object.rb', line 4

def type
  @type
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/value_object.rb', line 4

def url
  @url
end

Instance Method Details

#get_bindingObject



17
18
19
# File 'lib/value_object.rb', line 17

def get_binding
  binding
end