Class: Tjplurk::Robot::Response
- Inherits:
-
Object
- Object
- Tjplurk::Robot::Response
- Defined in:
- lib/tjplurk/robot/response.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#topic ⇒ Object
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(**params) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(**params) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/tjplurk/robot/response.rb', line 5 def initialize **params params.each{|key, value| send("#{key}=", value)} end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/tjplurk/robot/response.rb', line 4 def content @content end |
#topic ⇒ Object
Returns the value of attribute topic.
4 5 6 |
# File 'lib/tjplurk/robot/response.rb', line 4 def topic @topic end |