Class: YamWow::TopicsWithPrefixRequest
- Inherits:
-
Object
- Object
- YamWow::TopicsWithPrefixRequest
- Defined in:
- lib/yamwow/requests/topics/topics_with_prefix_request.rb
Instance Method Summary collapse
-
#initialize(responder, limited_topics_with_prefix_request) ⇒ TopicsWithPrefixRequest
constructor
A new instance of TopicsWithPrefixRequest.
- #send(topic_prefix) ⇒ Object
Constructor Details
#initialize(responder, limited_topics_with_prefix_request) ⇒ TopicsWithPrefixRequest
Returns a new instance of TopicsWithPrefixRequest.
4 5 6 7 |
# File 'lib/yamwow/requests/topics/topics_with_prefix_request.rb', line 4 def initialize(responder, limited_topics_with_prefix_request) @responder = responder @limited_topics_with_prefix_request = limited_topics_with_prefix_request end |
Instance Method Details
#send(topic_prefix) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/yamwow/requests/topics/topics_with_prefix_request.rb', line 9 def send(topic_prefix) @topic_prefix = topic_prefix @topics = [] add_topics(@topic_prefix) { find_topics @topic_prefix } @responder.create_response @topics end |