Class: Unit::RecurringCreditAchPayment
- Inherits:
-
APIResource
- Object
- APIResource
- Unit::RecurringCreditAchPayment
- Includes:
- Unit::ResourceOperations::Create, Unit::ResourceOperations::Destroy, Unit::ResourceOperations::Find, Unit::ResourceOperations::List
- Defined in:
- lib/unit-ruby/recurring_credit_ach_payment.rb
Instance Attribute Summary
Attributes inherited from APIResource
#id, #links, #raw_data, #relationships, #type
Instance Method Summary collapse
Methods included from Unit::ResourceOperations::Destroy
Methods included from Unit::ResourceOperations::Find
Methods included from Unit::ResourceOperations::Create
Methods included from Unit::ResourceOperations::List
Methods inherited from APIResource
#as_json_api, attribute, #attributes, belongs_to, build_resource_from_json_api, #clear_attributes!, connection, #dirty?, #dirty_attributes, has_many, header, headers, #initialize, #mark_as_clean!, #mark_attribute_as_dirty, path, resource_path, #resource_type, resources_path, #schema, schema, #update_attribute, #update_resource_from_json_api
Constructor Details
This class inherits a constructor from Unit::APIResource
Instance Method Details
#disable ⇒ Object
21 22 23 24 25 26 |
# File 'lib/unit-ruby/recurring_credit_ach_payment.rb', line 21 def disable updated_resource = self.class.connection.post( "#{self.class.resource_path(id)}/disable" ) update_resource_from_json_api(updated_resource) end |
#enable ⇒ Object
28 29 30 31 32 33 |
# File 'lib/unit-ruby/recurring_credit_ach_payment.rb', line 28 def enable updated_resource = self.class.connection.post( "#{self.class.resource_path(id)}/enable" ) update_resource_from_json_api(updated_resource) end |