Class: Async::Slack::Messages
Defined Under Namespace
Classes: Message
Instance Method Summary
collapse
Methods inherited from Pagination
#each, #empty?
#initialize
Instance Method Details
#collection(**parameters) ⇒ Object
63
64
65
|
# File 'lib/async/slack/search.rb', line 63
def collection(**parameters)
@resource.with(path: 'search.messages', parameters: parameters)
end
|
#records ⇒ Object
71
72
73
|
# File 'lib/async/slack/search.rb', line 71
def records
self.value[:messages][:matches]
end
|
#represent(metadata, attributes) ⇒ Object
75
76
77
|
# File 'lib/async/slack/search.rb', line 75
def represent(metadata, attributes)
representation.new(@resource, metadata: metadata, value: attributes)
end
|
#representation ⇒ Object
67
68
69
|
# File 'lib/async/slack/search.rb', line 67
def representation
Message
end
|