Class: Datahen::Client::GlobalPage

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

Constant Summary

Constants inherited from Base

Base::CHECK_EMPTY_BODY, Base::CHECK_NIL, Base::DEFAULT_RETRY_LIMIT

Instance Method Summary collapse

Methods inherited from Base

#auth_token, #auth_token=, #default_retry_limit, #env_api_url, env_auth_token, env_ignore_ssl, #ignore_ssl, #initialize, #left_merge, random_delay, #retry

Constructor Details

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

Instance Method Details

#find(gid) ⇒ Object



4
5
6
# File 'lib/datahen/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/datahen/client/global_page.rb', line 8

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