Class: Cobrato::Resources::ChargeConfig

Inherits:
Base
  • Object
show all
Defined in:
lib/cobrato/resources/charge_config.rb

Instance Attribute Summary

Attributes inherited from Base

#http

Instance Method Summary collapse

Methods inherited from Base

#collection_name, #create, crud, #destroy, #initialize, #list, #parsed_body, #show, #update

Methods included from Hooks

#notify

Constructor Details

This class inherits a constructor from Cobrato::Resources::Base

Instance Method Details

#deactivate(id) ⇒ Object



6
7
8
9
10
# File 'lib/cobrato/resources/charge_config.rb', line 6

def deactivate(id)
  http.post("#{resource_base_path}/#{id}/deactivate") do |response|
    respond_with_entity response
  end
end