class Eol::API

@private

Public Class Methods

new(options = {}) click to toggle source

Creates a new API

# File lib/eol/api.rb, line 14
def initialize(options = {})
  options = Eol.options.merge(options)
  Config::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Public Instance Methods

config() click to toggle source
# File lib/eol/api.rb, line 21
def config
  conf = {}
  Config::VALID_OPTIONS_KEYS.each do |key|
    conf[key] = send key
  end
  conf
end