Sha256: 266bf6f5b39e268405d21b50f8c386237f8785be1e9f6ba693f9d3db542a02c6

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

module Paid
  module APIOperations
    module List
      module ClassMethods
        def all(filters={}, opts={})
          api_key, headers = Util.parse_opts(opts)
          response, api_key = Paid.request(:get, api_url, api_key, filters, headers)
          Util.convert_to_paid_object(response, api_key)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
paid-0.1.0 lib/paid/api_operations/list.rb
paid-0.0.8 lib/paid/api_operations/list.rb
paid-0.0.7 lib/paid/api_operations/list.rb
paid-0.0.6 lib/paid/api_operations/list.rb
paid-0.0.5 lib/paid/api_operations/list.rb
paid-0.0.4 lib/paid/api_operations/list.rb