Class: Async::Slack::Messages
- Inherits:
-
Pagination
- Object
- Representation
- Pagination
- Async::Slack::Messages
- Defined in:
- lib/async/slack/search.rb
Defined Under Namespace
Classes: Message
Instance Method Summary collapse
- #collection(**parameters) ⇒ Object
- #records ⇒ Object
- #represent(metadata, attributes) ⇒ Object
- #representation ⇒ Object
Methods inherited from Pagination
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 74 |
# File 'lib/async/slack/search.rb', line 71 def records binding.irb self.value[:messages][:matches] end |
#represent(metadata, attributes) ⇒ Object
76 77 78 |
# File 'lib/async/slack/search.rb', line 76 def represent(, attributes) representation.new(@resource, metadata: , value: attributes) end |
#representation ⇒ Object
67 68 69 |
# File 'lib/async/slack/search.rb', line 67 def representation Message end |