Class: SuccessDefinition
- Inherits:
-
Object
- Object
- SuccessDefinition
- Defined in:
- lib/value_object.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#part ⇒ Object
Returns the value of attribute part.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(args) ⇒ SuccessDefinition
constructor
A new instance of SuccessDefinition.
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
#content ⇒ Object
Returns the value of attribute content.
23 24 25 |
# File 'lib/value_object.rb', line 23 def content @content end |
#part ⇒ Object
Returns the value of attribute part.
23 24 25 |
# File 'lib/value_object.rb', line 23 def part @part end |
#type ⇒ Object
Returns the value of attribute type.
23 24 25 |
# File 'lib/value_object.rb', line 23 def type @type end |
Instance Method Details
#get_binding ⇒ Object
32 33 34 |
# File 'lib/value_object.rb', line 32 def get_binding binding end |