Module: FatZebra::APIOperation::Void::ClassMethods
- Defined in:
- lib/fat_zebra/api_operation/void.rb
Instance Method Summary collapse
-
#void(id, params = {}, options = {}) ⇒ FatZebra::Object
Void an API Resource and validate params for the API.
Instance Method Details
#void(id, params = {}, options = {}) ⇒ FatZebra::Object
Void an API Resource and validate params for the API
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fat_zebra/api_operation/void.rb', line 19 def void(id, params = {}, = {}) valid!(params, :void) if respond_to?(:valid!) params = { id: id }.merge(params) response = request(:post, "#{resource_path}/void", params, ) initialize_from(response) end |