Sha256: b02b66492ac73b625217fe3bcadacc7a366b44e2cc62aa1a573a2c17968bc1f7

Contents?: true

Size: 403 Bytes

Versions: 18

Compression:

Stored size: 403 Bytes

Contents

require "omise/object"

module Omise
  class Card < OmiseObject
    self.endpoint = "/cards"

    def reload(attributes = {})
      assign_attributes resource(attributes).get(attributes)
    end

    def update(attributes = {})
      assign_attributes resource(attributes).patch(attributes)
    end

    def destroy(attributes = {})
      assign_attributes resource(attributes).delete
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
omise-0.11.0 lib/omise/card.rb
omise-0.10.1 lib/omise/card.rb
omise-0.10.0 lib/omise/card.rb
omise-0.9.1 lib/omise/card.rb
omise-0.9.0 lib/omise/card.rb
omise-0.7.2 lib/omise/card.rb
omise-0.8.0 lib/omise/card.rb
omise-0.7.1 lib/omise/card.rb
omise-0.7.0 lib/omise/card.rb
omise-0.6.0 lib/omise/card.rb
omise-0.5.1 lib/omise/card.rb
omise-0.5.0 lib/omise/card.rb
omise-0.4.0 lib/omise/card.rb
omise-0.3.0 lib/omise/card.rb
omise-0.2.1 lib/omise/card.rb
omise-0.2.0 lib/omise/card.rb
omise-0.1.5 lib/omise/card.rb
omise-0.1.4 lib/omise/card.rb