Repository URL to install this package:
|
Version:
0.0.1 ▾
|
require File.expand_path('request', __dir__)
require File.expand_path('response', __dir__)
require File.expand_path('connection', __dir__)
module FieldLocateApi
class API
attr_accessor *Configuration::VALID_OPTIONS_KEYS
def initialize(options = {})
options = FieldLocateApi.options.merge(options)
Configuration::VALID_OPTIONS_KEYS.each do |key|
send("#{key}=", options[key])
end
end
def config
conf = {}
Configuration::VALID_OPTIONS_KEYS.each do |key|
conf[key] = send key
end
conf
end
include Request
include Response
include Connection
end
end