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-0.23.0.beta8 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta7 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta6 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta5 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta4 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta3 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta2 lib/cobrato/resources/credit_card.rb
cobrato-client-0.23.0.beta1 lib/cobrato/resources/credit_card.rb
cobrato-client-0.22.0 lib/cobrato/resources/credit_card.rb
cobrato-client-0.21.0 lib/cobrato/resources/credit_card.rb