Class: Yaparc::Result::Base

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

Direct Known Subclasses

Error, Fail, OK

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/yaparc.rb', line 5

def initialize(options = {})
  @message = options[:message] if options[:message]
  @input = options[:input] if options[:input]
  @value = options[:value]
end

Instance Attribute Details

#inputObject

Returns the value of attribute input.



4
5
6
# File 'lib/yaparc.rb', line 4

def input
  @input
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/yaparc.rb', line 4

def message
  @message
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/yaparc.rb', line 4

def value
  @value
end