Class: Tvteka::Channel
- Inherits:
-
Object
- Object
- Tvteka::Channel
- Defined in:
- lib/tvteka/channel.rb
Instance Attribute Summary collapse
-
#button ⇒ Object
Returns the value of attribute button.
-
#favourited ⇒ Object
Returns the value of attribute favourited.
-
#height ⇒ Object
Returns the value of attribute height.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#name ⇒ Object
Returns the value of attribute name.
-
#schedule_date ⇒ Object
Returns the value of attribute schedule_date.
-
#schedule_link ⇒ Object
Returns the value of attribute schedule_link.
-
#streaming_urls ⇒ Object
Returns the value of attribute streaming_urls.
-
#telecast ⇒ Object
Returns the value of attribute telecast.
-
#thumb_url ⇒ Object
Returns the value of attribute thumb_url.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#tz_offset ⇒ Object
Returns the value of attribute tz_offset.
-
#videostatus ⇒ Object
Returns the value of attribute videostatus.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Channel
constructor
A new instance of Channel.
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
#button ⇒ Object
Returns the value of attribute button.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def end |
#favourited ⇒ Object
Returns the value of attribute favourited.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def favourited @favourited end |
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def height @height end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def link @link end |
#logo ⇒ Object
Returns the value of attribute logo.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def logo @logo end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def name @name end |
#schedule_date ⇒ Object
Returns the value of attribute schedule_date.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def schedule_date @schedule_date end |
#schedule_link ⇒ Object
Returns the value of attribute schedule_link.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def schedule_link @schedule_link end |
#streaming_urls ⇒ Object
Returns the value of attribute streaming_urls.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def streaming_urls @streaming_urls end |
#telecast ⇒ Object
Returns the value of attribute telecast.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def telecast @telecast end |
#thumb_url ⇒ Object
Returns the value of attribute thumb_url.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def thumb_url @thumb_url end |
#timezone ⇒ Object
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def timezone @timezone end |
#tz_offset ⇒ Object
Returns the value of attribute tz_offset.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def tz_offset @tz_offset end |
#videostatus ⇒ Object
Returns the value of attribute videostatus.
4 5 6 |
# File 'lib/tvteka/channel.rb', line 4 def videostatus @videostatus end |
#width ⇒ Object
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 |