Class: FilmOn::Group

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#aliasObject (readonly)

Returns the value of attribute alias.



10
11
12
# File 'lib/film_on/models/group.rb', line 10

def alias
  @alias
end

#channelsObject (readonly)

Returns the value of attribute channels.



11
12
13
# File 'lib/film_on/models/group.rb', line 11

def channels
  @channels
end

#channels_countObject (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

#descriptionObject (readonly)

Returns the value of attribute description.



10
11
12
# File 'lib/film_on/models/group.rb', line 10

def description
  @description
end

#groupObject (readonly)

Returns the value of attribute group.



10
11
12
# File 'lib/film_on/models/group.rb', line 10

def group
  @group
end

#group_idObject (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

#idObject (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_uriObject (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_uriObject (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

#logosObject (readonly)

Returns the value of attribute logos.



11
12
13
# File 'lib/film_on/models/group.rb', line 11

def logos
  @logos
end

#original_nameObject (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

#titleObject (readonly)

Returns the value of attribute title.



10
11
12
# File 'lib/film_on/models/group.rb', line 10

def title
  @title
end

#weightObject (readonly)

Returns the value of attribute weight.



11
12
13
# File 'lib/film_on/models/group.rb', line 11

def weight
  @weight
end