Class: ZendeskAPI::Organization

Inherits:
Resource show all
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

.incremental_export(client, start_time) ⇒ Collection

Gets a incremental export of organizations from the start_time until now.

Parameters:

  • client (Client)

    The Client object to be used

  • start_time (Integer)

    The start_time parameter

Returns:



132
133
134
# File 'lib/zendesk_api/resources.rb', line 132

def self.incremental_export(client, start_time)
  ZendeskAPI::Collection.new(client, self, :path => "incremental/organizations?start_time=#{start_time.to_i}")
end

Instance Method Details

#abilityZendeskAPI::Ability

Returns The associated object

Returns:



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

has Ability, :inline => true

#ability=(value) ⇒ ZendeskAPI::Ability

Returns The associated object

Parameters:

Returns:



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

has Ability, :inline => true

#groupZendeskAPI::Group

Returns The associated object

Returns:



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

has Group

#group=(value) ⇒ ZendeskAPI::Group

Returns The associated object

Parameters:

Returns:



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

has Group

#organization_memberships(options = {}) ⇒ ZendeskAPI::OrganizationMembership

Returns The associated object

Parameters:

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

    Options to pass to the collection object

Returns:



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

has_many OrganizationMembership

#organization_memberships=(value) ⇒ ZendeskAPI::OrganizationMembership

Returns The associated object

Parameters:

Returns:



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

has_many OrganizationMembership

#tags(options = {}) ⇒ ZendeskAPI::Tag

Returns The associated object

Parameters:

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

    Options to pass to the collection object

Returns:



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

has_many Tag, :extend => Tag::Update, :inline => :create

#tags=(value) ⇒ ZendeskAPI::Tag

Returns The associated object

Parameters:

  • value (Hash or ZendeskAPI::Tag)

    The associated object or its attributes

Returns:



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

has_many Tag, :extend => Tag::Update, :inline => :create

#tickets(options = {}) ⇒ ZendeskAPI::Ticket

Returns The associated object

Parameters:

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

    Options to pass to the collection object

Returns:



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

has_many Ticket

#tickets=(value) ⇒ ZendeskAPI::Ticket

Returns The associated object

Parameters:

Returns:



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

has_many Ticket

#users(options = {}) ⇒ ZendeskAPI::User

Returns The associated object

Parameters:

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

    Options to pass to the collection object

Returns:



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

has_many User

#users=(value) ⇒ ZendeskAPI::User

Returns The associated object

Parameters:

Returns:



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

has_many User