Class: Tvteka::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/tvteka/channel.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Channel

Returns a new instance of Channel.



6
7
8
9
10
# File 'lib/tvteka/channel.rb', line 6

def initialize(params = {})
  params.each do |k, v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#buttonObject

Returns the value of attribute button.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def button
  @button
end

#favouritedObject

Returns the value of attribute favourited.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def favourited
  @favourited
end

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def height
  @height
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def id
  @id
end

Returns the value of attribute link.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def link
  @link
end

#logoObject

Returns the value of attribute logo.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def 
  
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def name
  @name
end

#schedule_dateObject

Returns the value of attribute schedule_date.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def schedule_date
  @schedule_date
end

Returns the value of attribute schedule_link.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def schedule_link
  @schedule_link
end

#streaming_urlsObject

Returns the value of attribute streaming_urls.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def streaming_urls
  @streaming_urls
end

#telecastObject

Returns the value of attribute telecast.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def telecast
  @telecast
end

#thumb_urlObject

Returns the value of attribute thumb_url.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def thumb_url
  @thumb_url
end

#timezoneObject

Returns the value of attribute timezone.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def timezone
  @timezone
end

#tz_offsetObject

Returns the value of attribute tz_offset.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def tz_offset
  @tz_offset
end

#videostatusObject

Returns the value of attribute videostatus.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def videostatus
  @videostatus
end

#widthObject

Returns the value of attribute width.



4
5
6
# File 'lib/tvteka/channel.rb', line 4

def width
  @width
end

Class Method Details

.init_from_array(params_array = []) ⇒ Object



12
13
14
# File 'lib/tvteka/channel.rb', line 12

def self.init_from_array(params_array = [])
  params_array.map {|params| Tvteka::Channel.new(params)}
end