Method: Psapi::Channel#initialize

Defined in:
lib/psapi/channel.rb

#initialize(hash = {}) ⇒ Channel

Returns a new instance of Channel.



12
13
14
15
16
17
18
19
# File 'lib/psapi/channel.rb', line 12

def initialize(hash = {})
  super
  @status = Status.new(hash['status'] || {})
  @info   = Info.new(hash['info'] || {})
  @track  = Track.new(hash['track'])

  @yellow_pages = (hash['yellowPages'] || [])
end