Module: FilmOn::GroupHelper
- Included in:
- Base
- Defined in:
- lib/film_on/helpers/group_helper.rb
Instance Method Summary collapse
Instance Method Details
#convert_groups(json) ⇒ Object
4 5 6 7 |
# File 'lib/film_on/helpers/group_helper.rb', line 4 def convert_groups(json) hash = JSON.parse(json) hash.map{|gr| FilmOn::Group.new(gr)} end |
#find_group(id) ⇒ Object
9 10 11 |
# File 'lib/film_on/helpers/group_helper.rb', line 9 def find_group(id) groups.select{|gr| gr.id == id}.first end |