Class: TestCase
- Inherits:
-
Object
- Object
- TestCase
- Defined in:
- lib/value_object.rb
Instance Attribute Summary collapse
-
#data_path ⇒ Object
Returns the value of attribute data_path.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#name ⇒ Object
Returns the value of attribute name.
-
#success ⇒ Object
Returns the value of attribute success.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(args) ⇒ TestCase
constructor
A new instance of TestCase.
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_path ⇒ Object
Returns the value of attribute data_path.
4 5 6 |
# File 'lib/value_object.rb', line 4 def data_path @data_path end |
#debug ⇒ Object
Returns the value of attribute debug.
4 5 6 |
# File 'lib/value_object.rb', line 4 def debug @debug end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/value_object.rb', line 4 def headers @headers end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/value_object.rb', line 4 def name @name end |
#success ⇒ Object
Returns the value of attribute success.
4 5 6 |
# File 'lib/value_object.rb', line 4 def success @success end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/value_object.rb', line 4 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/value_object.rb', line 4 def url @url end |
Instance Method Details
#get_binding ⇒ Object
17 18 19 |
# File 'lib/value_object.rb', line 17 def get_binding binding end |