Class: FilmOn::Group
- Inherits:
-
Object
- Object
- FilmOn::Group
- Defined in:
- lib/film_on/models/group.rb
Overview
Group is a group of channels bundled together such as “Sports” or “UK Live TV” takes a raw hash and converts it into a nice ruby object
Instance Attribute Summary collapse
-
#alias ⇒ Object
readonly
Returns the value of attribute alias.
-
#channels ⇒ Object
readonly
Returns the value of attribute channels.
-
#channels_count ⇒ Object
readonly
Returns the value of attribute channels_count.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#group_id ⇒ Object
readonly
Returns the value of attribute group_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#logo_148x148_uri ⇒ Object
readonly
Returns the value of attribute logo_148x148_uri.
-
#logo_uri ⇒ Object
readonly
Returns the value of attribute logo_uri.
-
#logos ⇒ Object
readonly
Returns the value of attribute logos.
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(hash) ⇒ Group
Returns a new instance of Group.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/film_on/models/group.rb', line 13 def initialize(hash) @group_id = hash["group_id"] @id = hash["id"] @title = hash["title"] @group = hash["group"] @original_name = hash["original_name"] @alias = hash["alias"] @description = hash["description"] @weight = hash["weight"] @logo_uri = hash["logo_uri"] @logo_148x148_uri = hash["logo_148x148_uri"] @logos = hash["logos"] @channels = hash["channels"] @channels_count = hash["channels_count"] end |
Instance Attribute Details
#alias ⇒ Object (readonly)
Returns the value of attribute alias.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def alias @alias end |
#channels ⇒ Object (readonly)
Returns the value of attribute channels.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def channels @channels end |
#channels_count ⇒ Object (readonly)
Returns the value of attribute channels_count.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def channels_count @channels_count end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def description @description end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def group @group end |
#group_id ⇒ Object (readonly)
Returns the value of attribute group_id.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def group_id @group_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def id @id end |
#logo_148x148_uri ⇒ Object (readonly)
Returns the value of attribute logo_148x148_uri.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def logo_148x148_uri @logo_148x148_uri end |
#logo_uri ⇒ Object (readonly)
Returns the value of attribute logo_uri.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def logo_uri @logo_uri end |
#logos ⇒ Object (readonly)
Returns the value of attribute logos.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def logos @logos end |
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def original_name @original_name end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'lib/film_on/models/group.rb', line 10 def title @title end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
11 12 13 |
# File 'lib/film_on/models/group.rb', line 11 def weight @weight end |