Class: ZendeskAPI::OrganizationSubscription

Inherits:
ReadResource show all
Includes:
Create, Destroy
Defined in:
lib/zendesk_api/resources.rb,
lib/zendesk_api/resources.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ZendeskAPI::Data

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data

Instance Method Details

#clear_associationsObject Originally defined in module Save

Removes all cached associations

#destroy(&block) ⇒ Object Originally defined in module Destroy

Destroys, returning false on error.

#destroy!Boolean Originally defined in module Destroy

If this resource hasn't already been deleted, then do so.

Returns:

  • (Boolean)

    Successful?

#destroyed?Boolean Originally defined in module Destroy

Has this object been deleted?

Returns:

  • (Boolean)

#handle_response(response) ⇒ Object Originally defined in module ResponseHandler

#organizationZendeskAPI::Organization

Returns The associated object

Returns:



167
# File 'lib/zendesk_api/resources.rb', line 167

has Organization

#organization=(value) ⇒ ZendeskAPI::Organization

Returns The associated object

Parameters:

Returns:



167
# File 'lib/zendesk_api/resources.rb', line 167

has Organization

#save(options = {}, &block) ⇒ Object Originally defined in module Save

Saves, returning false if it fails and attaching the errors

#save!(options = {}) ⇒ Boolean Originally defined in module Save

If this resource hasn't been deleted, then create or save it. Executes a POST if it is a Data#new_record?, otherwise a PUT. Merges returned attributes on success.

Returns:

  • (Boolean)

    Success?

#save_associationsObject Originally defined in module Save

Saves associations Takes into account inlining, collections, and id setting on the parent resource.

#userZendeskAPI::User

Returns The associated object

Returns:



166
# File 'lib/zendesk_api/resources.rb', line 166

has User

#user=(value) ⇒ ZendeskAPI::User

Returns The associated object

Parameters:

Returns:



166
# File 'lib/zendesk_api/resources.rb', line 166

has User