Class: Shin::Play::Hbonordic

Inherits:
Object
  • Object
show all
Defined in:
lib/shin/play/hbonordic.rb

Defined Under Namespace

Classes: HTTPError, MissingArgument, NotValid

Instance Method Summary collapse

Instance Method Details

#all(params = {}) ⇒ Object

Category



11
12
13
14
15
16
17
18
19
20
21
22
# 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

#newObject



6
7
8
# File 'lib/shin/play/hbonordic.rb', line 6

def new
  self
end