Class: AnswersEngine::Client::GlobalPage

Inherits:
Base
  • Object
show all
Defined in:
lib/answersengine/client/global_page.rb

Instance Method Summary collapse

Methods inherited from Base

#auth_token, #auth_token=, #env_api_url, env_auth_token, #initialize

Constructor Details

This class inherits a constructor from AnswersEngine::Client::Base

Instance Method Details

#find(gid) ⇒ Object



4
5
6
# File 'lib/answersengine/client/global_page.rb', line 4

def find(gid)
  self.class.get("/global_pages/#{gid}", @options)
end

#find_content(gid) ⇒ Object



8
9
10
# File 'lib/answersengine/client/global_page.rb', line 8

def find_content(gid)
  self.class.get("/global_pages/#{gid}/content", @options)
end

#find_failed_content(gid) ⇒ Object



12
13
14
# File 'lib/answersengine/client/global_page.rb', line 12

def find_failed_content(gid)
  self.class.get("/global_pages/#{gid}/failed_content", @options)
end