Sha256: 50c7f4bf521c49f7d1b265a7bef011aada3ada718710d923ab65f44e25f1a346

Contents?: true

Size: 288 Bytes

Versions: 10

Compression:

Stored size: 288 Bytes

Contents

module Quandl
  module Operations
    module Base
      extend ActiveSupport::Concern

      class_methods do
        def default_path
          "#{lookup_key}/:id"
        end

        def lookup_key
          name.demodulize.pluralize.underscore
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
quandl-1.2.0 lib/quandl/operations/base.rb
quandl-1.1.1 lib/quandl/operations/base.rb
quandl-1.1.0 lib/quandl/operations/base.rb
quandl-1.0.4 lib/quandl/operations/base.rb
quandl-1.0.3 lib/quandl/operations/base.rb
quandl-1.0.2 lib/quandl/operations/base.rb
quandl-1.0.1 lib/quandl/operations/base.rb
quandl-1.0.0 lib/quandl/operations/base.rb
quandl-1.0.0.rc2 lib/quandl/operations/base.rb
quandl-1.0.0.rc1 lib/quandl/operations/base.rb