Sha256: a2530e5741567126ae0e4fa04aa9b901aa89f2e2ee2652734f02a527550c4fa2

Contents?: true

Size: 307 Bytes

Versions: 12

Compression:

Stored size: 307 Bytes

Contents

require "omise/object"

module Omise
  class Document < OmiseObject
    self.endpoint = "/documents"

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
omise-0.11.0 lib/omise/document.rb
omise-0.10.1 lib/omise/document.rb
omise-0.10.0 lib/omise/document.rb
omise-0.9.1 lib/omise/document.rb
omise-0.9.0 lib/omise/document.rb
omise-0.7.2 lib/omise/document.rb
omise-0.8.0 lib/omise/document.rb
omise-0.7.1 lib/omise/document.rb
omise-0.7.0 lib/omise/document.rb
omise-0.6.0 lib/omise/document.rb
omise-0.5.1 lib/omise/document.rb
omise-0.5.0 lib/omise/document.rb