Class: Conekta::PayoutMethod
- Inherits:
-
Resource
- Object
- Hash
- ConektaObject
- Resource
- Conekta::PayoutMethod
- Defined in:
- lib/conekta/payout_method.rb
Instance Attribute Summary
Attributes inherited from ConektaObject
Instance Method Summary collapse
Methods included from Operations::CustomAction
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from Resource
Methods inherited from ConektaObject
#class_name, class_name, #create_attr, #first, #initialize, #inspect, #last, #load_from, #set_val, #to_s, #unset_key
Constructor Details
This class inherits a constructor from Conekta::ConektaObject
Instance Method Details
#delete ⇒ Object
12 13 14 |
# File 'lib/conekta/payout_method.rb', line 12 def delete self.delete_member('payee','payout_methods') end |
#url ⇒ Object
6 7 8 9 10 11 |
# File 'lib/conekta/payout_method.rb', line 6 def url raise Error.new( I18n.t('error.resource.id', { resource: self.class.class_name, locale: :en }), I18n.t('error.resource.id_purchaser', { locale: Conekta.locale.to_sym })) if (id.nil? || id.empty?) self.payee.url + self.class.url + "/" + id end |