class Shin::Play::Hbonordic

Public Instance Methods

all(params={}) click to toggle source

Category

# File lib/shin/play/hbonordic.rb, line 11
def all(params={})

  # Response
  if params[:offset] != ""
    response = Base.get('https://api-hbon.hbo.clearleap.com/cloffice/client/web/browse/' + params[:id] + '?max=200&offset=' + params[:offset].to_s + '&language=' + params[:language], {local_host: "188.165.139.194"})
  else
    response = Base.get('https://api-hbon.hbo.clearleap.com/cloffice/client/web/browse/' + params[:id] + '?max=10000&offset=0&language=' + params[:language], {local_host: "188.165.139.194"})
  end

  # They place movies in a "entry" tag somehow
  response.parsed_response["rss"]["channel"].to_hashugar
end
new() click to toggle source
# File lib/shin/play/hbonordic.rb, line 6
def new
  self
end