Class: ExecutableTest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



38
39
40
# File 'lib/value_object.rb', line 38

def command
  @command
end

#nameObject

Returns the value of attribute name.



38
39
40
# File 'lib/value_object.rb', line 38

def name
  @name
end

#successObject

Returns the value of attribute success.



38
39
40
# File 'lib/value_object.rb', line 38

def success
  @success
end

#typeObject

Returns the value of attribute type.



38
39
40
# File 'lib/value_object.rb', line 38

def type
  @type
end

#urlObject

Returns the value of attribute url.



38
39
40
# File 'lib/value_object.rb', line 38

def url
  @url
end

Instance Method Details

#get_bindingObject



49
50
51
# File 'lib/value_object.rb', line 49

def get_binding
 	binding
end