Class: Async::Slack::Search

Inherits:
Representation show all
Defined in:
lib/async/slack/search.rb

Instance Method Summary collapse

Instance Method Details

#messages(**parameters, &block) ⇒ Object



82
83
84
85
86
87
88
89
90
# File 'lib/async/slack/search.rb', line 82

def messages(**parameters, &block)
	messages = self.with(Messages, parameters: parameters)
	
	if block_given?
		messages.each(&block)
	else
		return messages
	end
end