Class: ExecutableTest
- Inherits:
-
Object
- Object
- ExecutableTest
- Defined in:
- lib/value_object.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#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) ⇒ ExecutableTest
constructor
A new instance of ExecutableTest.
Constructor Details
#initialize(args) ⇒ ExecutableTest
Returns a new instance of ExecutableTest.
40 41 42 43 44 45 46 47 |
# File 'lib/value_object.rb', line 40 def initialize(args) obj = OpenStruct.new(args) @name = obj.name @url = obj.url @type = obj.type || "GET" @command = obj.command @success = obj.success end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
38 39 40 |
# File 'lib/value_object.rb', line 38 def command @command end |
#name ⇒ Object
Returns the value of attribute name.
38 39 40 |
# File 'lib/value_object.rb', line 38 def name @name end |
#success ⇒ Object
Returns the value of attribute success.
38 39 40 |
# File 'lib/value_object.rb', line 38 def success @success end |
#type ⇒ Object
Returns the value of attribute type.
38 39 40 |
# File 'lib/value_object.rb', line 38 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
38 39 40 |
# File 'lib/value_object.rb', line 38 def url @url end |
Instance Method Details
#get_binding ⇒ Object
49 50 51 |
# File 'lib/value_object.rb', line 49 def get_binding binding end |