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.



9
10
11
12
13
# File 'lib/yaparc.rb', line 9

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.



8
9
10
# File 'lib/yaparc.rb', line 8

def input
  @input
end

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/yaparc.rb', line 8

def message
  @message
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/yaparc.rb', line 8

def value
  @value
end