Sha256: 469c4f78fbd47b17fb9188e0d464fca5662380f9842249dc08e9370913210141

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

module Conekta
  class PayoutMethod < Resource
    include Conekta::Operations::Delete
    include Conekta::Operations::Update
    include Conekta::Operations::CustomAction
    def url
      if id == nil || id == ""
        raise Error.new('Could not get the id of ' + self.class.class_name + ' instance.')
      end
      self.payee.url + self.class.url + "/" + id
    end
    def delete
      self.delete_member('payee','payout_methods')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
conekta-0.4.4 lib/conekta/payout_method.rb
conekta-0.4.3 lib/conekta/payout_method.rb
conekta-0.4.2 lib/conekta/payout_method.rb
conekta-0.4.1 lib/conekta/payout_method.rb