Module: ZendeskAPI::Update::ClassMethod

Includes:
Rescue
Defined in:
lib/zendesk_api/actions.rb

Instance Method Summary collapse

Instance Method Details

#update(client, attributes = {}) ⇒ Object

Updates a resource given the id passed in.

Parameters:

  • client (Client)

    The Client object to be used

  • attributes (Hash) (defaults to: {})

    The attributes to update. Default to {}



167
168
169
170
171
# File 'lib/zendesk_api/actions.rb', line 167

def update(client, attributes = {})
  ZendeskAPI::Client.check_deprecated_namespace_usage attributes, singular_resource_name
  resource = new(client, attributes)
  resource.save
end