Class: Access::Channel
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from MuchMeta
#set_up_methods, #set_values
Constructor Details
#initialize(values) ⇒ Channel
Returns a new instance of Channel.
17
18
19
20
21
22
|
# File 'lib/access/channel.rb', line 17
def initialize(values)
@used_fields = []
set_up_methods(values)
set_values(values)
@links = Access::Link.process_batch(@links) if @links
end
|
Class Method Details
.find(channel_key, options = {}) ⇒ Object
9
10
11
|
# File 'lib/access/channel.rb', line 9
def self.find(channel_key, options = {})
Access::Api.new.find_channel channel_key, options
end
|
.process_batch(chunk) ⇒ Object
13
14
15
|
# File 'lib/access/channel.rb', line 13
def self.process_batch(chunk)
chunk.map { |channel| new(channel) }
end
|
.search(options = {}) ⇒ Object