Sha256: 9306aaa6f691602179ea05941464dafe93590297d3b654d3a131e7282b4283ab
Contents?: true
Size: 1.12 KB
Versions: 5
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
5 entries across 5 versions & 1 rubygems