Class: Hutzbot::ValidResponse
- Inherits:
-
Object
- Object
- Hutzbot::ValidResponse
- Defined in:
- lib/hutzbot/hutzbot.rb
Instance Attribute Summary collapse
-
#answer ⇒ Object
Returns the value of attribute answer.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ ValidResponse
constructor
A new instance of ValidResponse.
Constructor Details
#initialize(attrs) ⇒ ValidResponse
Returns a new instance of ValidResponse.
27 28 29 |
# File 'lib/hutzbot/hutzbot.rb', line 27 def initialize attrs @answer, @response = *attrs.values_at('answer', 'response') end |
Instance Attribute Details
#answer ⇒ Object
Returns the value of attribute answer.
24 25 26 |
# File 'lib/hutzbot/hutzbot.rb', line 24 def answer @answer end |
#response ⇒ Object
Returns the value of attribute response.
25 26 27 |
# File 'lib/hutzbot/hutzbot.rb', line 25 def response @response end |