Sha256: cab03f24ec371dc1342668096ee459097b42e2b9888663b65916115d10c2ec2c

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

$LOAD_PATH << File.expand_path('..', __FILE__)

require 'support/presence'
require 'support/symbolize_keys'

module Hungry
  VERSION = '0.0.1'
  
  class << self
    attr_accessor :api_url
  end
  
  self.api_url = 'http://api.eet.nu/'
  
  ### LIBRARY:
  
  autoload :City,        'hungry/city'
  autoload :Collection,  'hungry/collection'
  autoload :Country,     'hungry/country'
  autoload :Geolocation, 'hungry/geolocation'
  autoload :Location,    'hungry/location'
  autoload :Region,      'hungry/region'
  autoload :Resource,    'hungry/resource'
  autoload :Review,      'hungry/review'
  autoload :Site,        'hungry/site'
  autoload :Tag,         'hungry/tag'
  autoload :Util,        'hungry/util'
  autoload :Venue,       'hungry/venue'
  
  ### EXCEPTIONS:
  
  # Exception raised when a geolocation is required, but it is not given:
  class GeolocationNotGiven  < StandardError; end
  
  # Exception raised when an endpoint is not specified for a resource:
  class EndpointNotSpecified < StandardError; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hungry-0.0.1 lib/hungry.rb