app/controllers/application_controller.rb
# fetch services for each show from API, update show object with services objects and return
fetch services for each show from API, update show object with services objects and return
fetch services for each show from API update show object with services objects and return
def fetch_services(tv_show)
        request = ServiceApiSearch.new(tv_show[:imdbID])
        services = request.parse_service_objects
        tv_show[:services] = services
        p tv_show
    end
def fetch_services ( tv_show ) request = ServiceApiSearch . new ( tv_show [ :imdbID ] ) services = request . parse_service_objects tv_show [ :services ] = services p tv_show end
fetch services for each show from API, update show object with services objects and return
fetch services for each show from API update show object with services objects and return
tv_show