Class: JeraPayment::Services::Iugu::SubAccounts::Create
- Defined in:
- lib/jera_payment/services/iugu/sub_accounts/create.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 13 14 15 16 |
# File 'lib/jera_payment/services/iugu/sub_accounts/create.rb', line 6 def call iugu_marketplace = JeraPayment::Api::Iugu::SubAccount.create(@attributes) if iugu_marketplace[:errors].present? add_error(iugu_marketplace[:errors]) else set_api_attributes(iugu_marketplace) end @resource.errors.blank? end |