Sha256: 2e1375970e0d316d95f9b4a10cadcd8dedd6c41e7634bd28dc13d0fe3c6190e0

Contents?: true

Size: 318 Bytes

Versions: 30

Compression:

Stored size: 318 Bytes

Contents

module Cobrato
  module Resources
    class CreditCard < Base
      crud :show, :create, :list, :update

      def charges(id, params={})
        http.get("#{resource_base_path}/#{id}/charges", params: params) do |response|
          respond_with_collection(response, "Charge")
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
cobrato-client-1.1.7 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.6 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.5 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.4 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.3 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.2 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.1 lib/cobrato/resources/credit_card.rb
cobrato-client-1.1.0 lib/cobrato/resources/credit_card.rb
cobrato-client-1.0.1 lib/cobrato/resources/credit_card.rb
cobrato-client-1.0.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.27.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.26.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.25.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.24.1 lib/cobrato/resources/credit_card.rb
cobrato-client-0.24.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta12 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta11 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta10 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta9 lib/cobrato/resources/credit_card.rb