Class: Yaparc::Result::Base
- Inherits:
-
Object
- Object
- Yaparc::Result::Base
- Defined in:
- lib/yaparc.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#message ⇒ Object
Returns the value of attribute message.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 |
# File 'lib/yaparc.rb', line 5 def initialize( = {}) @message = [:message] if [:message] @input = [:input] if [:input] @value = [:value] end |
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input.
4 5 6 |
# File 'lib/yaparc.rb', line 4 def input @input end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/yaparc.rb', line 4 def @message end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/yaparc.rb', line 4 def value @value end |