Class: JeraPayment::Services::Iugu::Plans::Destroy
- Defined in:
- lib/jera_payment/services/iugu/plans/destroy.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from JeraPayment::Services::Iugu::Base
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/jera_payment/services/iugu/plans/destroy.rb', line 6 def call iugu_plan = JeraPayment::Api::Iugu::Plan.destroy(@resource.api_id, @resource&.sub_account&.api_token) add_error(iugu_plan[:errors]) if iugu_plan[:errors].present? @resource.errors.blank? end |