Class: YamWow::MessagesWithTopicIdRequest
- Inherits:
-
Object
- Object
- YamWow::MessagesWithTopicIdRequest
- Defined in:
- lib/yamwow/requests/messages/messages_with_topic_id_request.rb
Instance Method Summary collapse
-
#initialize(responder, limited_messages_with_topic_id_request) ⇒ MessagesWithTopicIdRequest
constructor
A new instance of MessagesWithTopicIdRequest.
- #send(topic_id) ⇒ Object
Constructor Details
#initialize(responder, limited_messages_with_topic_id_request) ⇒ MessagesWithTopicIdRequest
Returns a new instance of MessagesWithTopicIdRequest.
4 5 6 7 |
# File 'lib/yamwow/requests/messages/messages_with_topic_id_request.rb', line 4 def initialize(responder, ) @responder = responder @limited_messages_with_topic_id_request = end |
Instance Method Details
#send(topic_id) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/yamwow/requests/messages/messages_with_topic_id_request.rb', line 9 def send(topic_id) @topic_id = topic_id @messages = [] @references = [] @responder.create_response @messages, @references end |