Sha256: b1629b97293dec2389a24acd15b30baa8774ccc014a6257a7ffb75e92b046d5e
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
module ZendeskAPI class ForumSubscription < Resource only_send_unnested_params has :forum has :user end class Forum < Resource has :category has :organization has :locale has_many :topics has_many :subscriptions, :class => :forum_subscription end class Category < Resource has_many :forums end class TopicSubscription < Resource only_send_unnested_params has :topic has :user end class Topic < Resource class TopicComment < Resource has :topic has :user has_many :attachments end class TopicVote < SingularResource only_send_unnested_params has :topic has :user end has_many :comments, :class => :topic_comment has_many :subscriptions, :class => :topic_subscription has :vote, :class => :topic_vote def votes(opts = {}) return @votes if @votes && !opts[:reload] association = ZendeskAPI::Association.new(:class => Topic::TopicVote, :parent => self, :path => 'votes') @votes = ZendeskAPI::Collection.new(@client, Topic::TopicVote, opts.merge(:association => association)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zendesk_api-0.1.2 | lib/zendesk_api/resources/forum.rb |
zendesk_api-0.1.1 | lib/zendesk_api/resources/forum.rb |
zendesk_api-0.0.9 | lib/zendesk_api/resources/forum.rb |