Sha256: 7daa58f7193943887c484e113e20617644a710bf8acb723861602f97ba78a945

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'active_support/inflector'

module Quandl
  module Configurable
    def configuration
      @configuration ||= Config.new(file_name, configuration_options)
    end

    private

    def file_name
      defined?(name) ? name.underscore : self.class.name.underscore
    end

    def configuration_options
      {}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quandl-config-0.0.4 lib/quandl/configurable.rb