Class: FilmOn::Programme
- Inherits:
-
Object
- Object
- FilmOn::Programme
- Defined in:
- lib/film_on/models/programme.rb
Defined Under Namespace
Classes: Image
Instance Attribute Summary collapse
-
#allow_dvr ⇒ Object
readonly
Returns the value of attribute allow_dvr.
-
#allow_reminder ⇒ Object
readonly
Returns the value of attribute allow_reminder.
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#enddatetime ⇒ Object
readonly
Returns the value of attribute enddatetime.
-
#episode_number ⇒ Object
readonly
Returns the value of attribute episode_number.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#is_series ⇒ Object
readonly
Returns the value of attribute is_series.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#programme ⇒ Object
readonly
Returns the value of attribute programme.
-
#programme_description ⇒ Object
readonly
Returns the value of attribute programme_description.
-
#programme_name ⇒ Object
readonly
Returns the value of attribute programme_name.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#series_id ⇒ Object
readonly
Returns the value of attribute series_id.
-
#series_number ⇒ Object
readonly
Returns the value of attribute series_number.
-
#startdatetime ⇒ Object
readonly
Returns the value of attribute startdatetime.
-
#vendor_id ⇒ Object
readonly
Returns the value of attribute vendor_id.
Instance Method Summary collapse
- #get_images(imgs) ⇒ Object
-
#initialize(hash) ⇒ Programme
constructor
A new instance of Programme.
Constructor Details
#initialize(hash) ⇒ Programme
Returns a new instance of Programme.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/film_on/models/programme.rb', line 11 def initialize(hash) @hash = hash @programme = hash["programme"] @startdatetime = hash["startdatetime"] @enddatetime = hash["enddatetime"] @duration = hash["duration"] @length = hash["length"] @programme_description = hash["programme_description"] @programme_name = hash["programme_name"] @allow_dvr = hash["allow_dvr"] @allow_reminder = hash["allow_reminder"] @channel_id = hash["channel_id"] @images = get_images(hash["images"]) @provider = hash["provider"] @vendor_id = hash["vendor_id"] @series_number = hash["seriesNumber"] @episode_number = hash["episodeNumber"] @series_id = hash["seriesId"] @is_series = hash["isSeries"] end |
Instance Attribute Details
#allow_dvr ⇒ Object (readonly)
Returns the value of attribute allow_dvr.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def allow_dvr @allow_dvr end |
#allow_reminder ⇒ Object (readonly)
Returns the value of attribute allow_reminder.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def allow_reminder @allow_reminder end |
#channel_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def channel_id @channel_id end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def duration @duration end |
#enddatetime ⇒ Object (readonly)
Returns the value of attribute enddatetime.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def enddatetime @enddatetime end |
#episode_number ⇒ Object (readonly)
Returns the value of attribute episode_number.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def episode_number @episode_number end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
7 8 9 |
# File 'lib/film_on/models/programme.rb', line 7 def hash @hash end |
#images ⇒ Object (readonly)
Returns the value of attribute images.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def images @images end |
#is_series ⇒ Object (readonly)
Returns the value of attribute is_series.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def is_series @is_series end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def length @length end |
#programme ⇒ Object (readonly)
Returns the value of attribute programme.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def programme @programme end |
#programme_description ⇒ Object (readonly)
Returns the value of attribute programme_description.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def programme_description @programme_description end |
#programme_name ⇒ Object (readonly)
Returns the value of attribute programme_name.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def programme_name @programme_name end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def provider @provider end |
#series_id ⇒ Object (readonly)
Returns the value of attribute series_id.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def series_id @series_id end |
#series_number ⇒ Object (readonly)
Returns the value of attribute series_number.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def series_number @series_number end |
#startdatetime ⇒ Object (readonly)
Returns the value of attribute startdatetime.
8 9 10 |
# File 'lib/film_on/models/programme.rb', line 8 def startdatetime @startdatetime end |
#vendor_id ⇒ Object (readonly)
Returns the value of attribute vendor_id.
9 10 11 |
# File 'lib/film_on/models/programme.rb', line 9 def vendor_id @vendor_id end |