Class: Tjplurk::Robot::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tjplurk/robot/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/tjplurk/robot/response.rb', line 4

def content
  @content
end

#topicObject

Returns the value of attribute topic.



4
5
6
# File 'lib/tjplurk/robot/response.rb', line 4

def topic
  @topic
end