Class: SuccessDefinition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ SuccessDefinition

Returns a new instance of SuccessDefinition.



25
26
27
28
29
30
# File 'lib/value_object.rb', line 25

def initialize(args)
	obj = OpenStruct.new(args)
	@part = obj.part
   @type = obj.type
   @content = obj.content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



23
24
25
# File 'lib/value_object.rb', line 23

def content
  @content
end

#partObject

Returns the value of attribute part.



23
24
25
# File 'lib/value_object.rb', line 23

def part
  @part
end

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/value_object.rb', line 23

def type
  @type
end

Instance Method Details

#get_bindingObject



32
33
34
# File 'lib/value_object.rb', line 32

def get_binding
 	binding
end