class Tapbot::Api
Public Class Methods
new(options={})
click to toggle source
# File lib/tapbot/api.rb, line 6 def initialize(options={}) options = Tapbot.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end
Public Instance Methods
config()
click to toggle source
# File lib/tapbot/api.rb, line 13 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end