Sha256: d339e2936d57202b1a9ca4fd1e6c520927f4a0e858a41ecb55d619d119c85a45

Contents?: true

Size: 609 Bytes

Versions: 10

Compression:

Stored size: 609 Bytes

Contents

module Quandl
  module Operations
    module List
      extend ActiveSupport::Concern
      include Quandl::Operations::Base

      class_methods do
        def all(options = {})
          response, response_data = Quandl::Connection.request(:get, Quandl::Util.constructed_path(list_path, options[:params]), options)
          create_list_from_response(response, response_data)
        end

        def create_list_from_response(_response, data)
          Quandl::List.new(self, data[lookup_key], data['meta'])
        end

        def list_path
          default_path
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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