Class: YamWow::TopicWithNameRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/yamwow/requests/topics/topic_with_name_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(topics_with_prefix_request) ⇒ TopicWithNameRequest

Returns a new instance of TopicWithNameRequest.



4
5
6
# File 'lib/yamwow/requests/topics/topic_with_name_request.rb', line 4

def initialize(topics_with_prefix_request)
  @topics_with_prefix_request = topics_with_prefix_request
end

Instance Method Details

#send(topic_name) ⇒ Object



8
9
10
11
# File 'lib/yamwow/requests/topics/topic_with_name_request.rb', line 8

def send(topic_name)
  @topic_name = topic_name
  Response.new topic_with_name
end