Class: FilmOn::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/film_on/models/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Group



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/film_on/models/group.rb', line 9

def initialize(hash)
  @hash = 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.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def alias
  @alias
end

#channelsObject (readonly)

Returns the value of attribute channels.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def channels
  @channels
end

#channels_countObject (readonly)

Returns the value of attribute channels_count.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def channels_count
  @channels_count
end

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def description
  @description
end

#groupObject (readonly)

Returns the value of attribute group.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def group
  @group
end

#group_idObject (readonly)

Returns the value of attribute group_id.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def group_id
  @group_id
end

#hashObject (readonly)

Returns the value of attribute hash.



5
6
7
# File 'lib/film_on/models/group.rb', line 5

def hash
  @hash
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def id
  @id
end

#logo_148x148_uriObject (readonly)

Returns the value of attribute logo_148x148_uri.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def logo_148x148_uri
  @logo_148x148_uri
end

#logo_uriObject (readonly)

Returns the value of attribute logo_uri.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def logo_uri
  @logo_uri
end

#logosObject (readonly)

Returns the value of attribute logos.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def logos
  @logos
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def original_name
  @original_name
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/film_on/models/group.rb', line 6

def title
  @title
end

#weightObject (readonly)

Returns the value of attribute weight.



7
8
9
# File 'lib/film_on/models/group.rb', line 7

def weight
  @weight
end