Sha256: 8b701804dd66f50a938d8e8758d9210c390196aae6a439fa9345987193450731
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
require 'hashie/mash' require 'json' require 'httparty' current_dir = File.expand_path(File.dirname(__FILE__)) require current_dir + "/api/request" require current_dir + "/api/queryable" require current_dir + "/api/resource" require current_dir + "/api/collection" require current_dir + "/api/request_specification" require current_dir + "/api/resource_identifier" require current_dir + "/api/post" require current_dir + "/api/put" require current_dir + "/api/delete" require current_dir + "/api/query" require current_dir + "/api/exceptions" require current_dir + "/api/search" require current_dir + "/api/property" require current_dir + "/api/county" require current_dir + "/api/location" require current_dir + "/api/place" require current_dir + "/api/site_content_chunk" require current_dir + "/api/agency" require current_dir + "/api/password_reset" require current_dir + "/api/branch" require current_dir + "/api/user" require current_dir + "/api/session" require current_dir + "/api/lead" require current_dir + "/api/portal" require current_dir + "/api/postcode" require current_dir + "/api/site" require current_dir + '/api/site_page' require current_dir + '/api/message' require current_dir + "/api/favourite_property" require current_dir + "/api/response" module Homeflow module API VERSION = "1.0.2" class << self attr_accessor :configuration end # Gets or create a new configuration instance def self.config self.configuration ||= Configuration.new end # Provides a block allowing for eacy configuration # ==== Examples # Homeflow::API.configure do |config| # config.api_key = "Your api key here" # end # def self.configure yield(config) end # A configuration instance class Configuration attr_accessor :api_key, :source, :show_debug, :logger def initialize @api_key = 'API_KEY_REQUIRED' @source = 'http://localhost:3000' @show_debug = false @logger = nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
homeflow_api-1.0.2 | lib/homeflow/api.rb |