Module: Hyperpublic

Includes:
HTTParty
Defined in:
lib/hyperpublic.rb,
lib/hyperpublic/all.rb,
lib/hyperpublic/base.rb,
lib/hyperpublic/oauth.rb,
lib/hyperpublic/offers.rb,
lib/hyperpublic/people.rb,
lib/hyperpublic/places.rb,
lib/hyperpublic/things.rb,
lib/hyperpublic/request.rb,
lib/hyperpublic/version.rb,
lib/hyperpublic/categories.rb

Defined Under Namespace

Classes: All, BadRequest, Base, Categories, General, HyperpublicError, NotFound, OAuth, Offers, People, Places, Request, Things, Unauthorized, Unavailable

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.api_endpointObject



41
42
43
# File 'lib/hyperpublic.rb', line 41

def self.api_endpoint
  @api_endpoint ||= "https://api.hyperpublic.com/api/v#{self.api_version}"
end

.api_endpoint=(value) ⇒ Object



45
46
47
# File 'lib/hyperpublic.rb', line 45

def self.api_endpoint=(value)
  @api_endpoint = value
end

.api_versionObject



49
50
51
# File 'lib/hyperpublic.rb', line 49

def self.api_version
  @api_version ||= "1"
end

.api_version=(value) ⇒ Object



53
54
55
# File 'lib/hyperpublic.rb', line 53

def self.api_version=(value)
  @api_version = value
end

.user_agentObject



33
34
35
# File 'lib/hyperpublic.rb', line 33

def self.user_agent
  @user_agent ||= 'Ruby Hyperpublic Gem'
end

.user_agent=(value) ⇒ Object



37
38
39
# File 'lib/hyperpublic.rb', line 37

def self.user_agent=(value)
  @user_agent = value
end