Sha256: e0b406549455f8839d396fb0ba6c8ebc30d9f9579608c54f934bb8e20319bcfb

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

require 'zendesk_api/resources/forum'

module ZendeskAPI
  class CRMData < DataResource; end
  class CRMDataStatus < DataResource; end
  class CustomRole < DataResource; end

  class GroupMembership < Resource
    has :user
    has :group
  end

  class User < Resource
    class Identity < Resource
      put :make_primary
      put :verify
      put :request_verification
    end

    has :organization
    has :custom_role
    has_many :identities

    has_many :requests
    has_many :requested_tickets, :class => :ticket, :path => 'tickets/requested'
    has_many :ccd_tickets, :class => :ticket, :path => 'tickets/ccd'

    has_many :groups
    has_many :group_memberships
    has_many :topics

    has_many :forum_subscriptions, :class => "forum_subscription"
    has_many :topic_subscriptions, :class => "topic_subscription"
    has_many :topic_comments, :class => "topic/topic_comment"
    has_many :topic_votes, :class => "topic/vote"

    has :crm_data
    has :crm_data_status, :path => 'crm_data/status'
  end

  class Organization < Resource
    has :group
    has_many :tickets
    has_many :users
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zendesk_api-0.1.5 lib/zendesk_api/resources/user.rb
zendesk_api-0.1.4 lib/zendesk_api/resources/user.rb
zendesk_api-0.1.3 lib/zendesk_api/resources/user.rb