Class: ZendeskAPI::GroupMembership

Inherits:
Resource show all
Extended by:
CreateMany, DestroyMany
Defined in:
lib/zendesk_api/resources.rb

Class Method Summary collapse

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

Class Method Details

.create_many!(client, attributes_array, association = Association.new(:class => self)) ⇒ JobStatus Originally defined in module CreateMany

Creates multiple resources using the create_many endpoint.

Parameters:

  • client (Client)

    The ZendeskAPI::Client object to be used

  • attributes_array (Array)

    An array of resources to be created.

Returns:

.destroy_many!(client, ids, association = Association.new(:class => self)) ⇒ JobStatus Originally defined in module DestroyMany

Destroys multiple resources using the destroy_many endpoint.

Parameters:

  • client (Client)

    The Client object to be used

  • ids (Array)

    An array of ids to destroy

Returns:

Instance Method Details

#groupZendeskAPI::Group

Returns The associated object

Returns:



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

has Group

#group=(value) ⇒ ZendeskAPI::Group

Returns The associated object

Parameters:

Returns:



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

has Group

#userZendeskAPI::User

Returns The associated object

Returns:



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

has User

#user=(value) ⇒ ZendeskAPI::User

Returns The associated object

Parameters:

Returns:



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

has User