Class: Essential::Messaging::Channel
Instance Method Summary
collapse
list, retrieve
#update
Methods inherited from Resource
#==, #as_json, #fetch, #init_from, #initialize, #inspect, #loaded?, request, #to_json, url, #url
#filter_attrs, included
Instance Method Details
#messages ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/essential/messaging/channel.rb', line 27
def messages
Essential::Resource::PaginatorProxy.new(
Message,
params: {channel: self.sid},
headers:
)
end
|
#subscribers ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/essential/messaging/channel.rb', line 19
def subscribers
Essential::Resource::PaginatorProxy.new(
Subscriber,
params: {channel: self.sid},
headers:
)
end
|
#transports ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/essential/messaging/channel.rb', line 11
def transports
Essential::Resource::PaginatorProxy.new(
Transport,
params: {channel: self.sid},
headers:
)
end
|