Sha256: 1897cd67b6621d6f36fac982bf6856181912f7fa5aff743709ede1a9e4e22c22

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

module Finix
  class Authorization
    include Finix::Resource
    include Finix::HypermediaRegistry

    define_hypermedia_types [:authorizations]

    def void
      self['void_me'] = true
      self.save
    end

    def capture(attrs={})
      self.attributes = self.attributes.merge attrs
      self.save
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
finix-0.7 lib/finix/resources/authorization.rb
finix-0.6 lib/finix/resources/authorization.rb
finix-0.5 lib/finix/resources/authorization.rb
finix-0.4 lib/finix/resources/authorization.rb
finix-0.3 lib/finix/resources/authorization.rb
finix-0.2 lib/finix/resources/authorization.rb