Sha256: f58a43b9d88f851f58861eb2af6f952518a11c6b00990e785a8180ed0559e779
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
module ZendeskAPI class Activity < Resource has :user has :actor, :class => :user end class Setting < DataResource attr_reader :on def initialize(client, attributes = {}) @on = attributes.first super(client, attributes[1]) end end class MobileDevice < Resource put :clear_badge end class SatisfactionRating < ReadResource has :assignee, :class => :user has :requester, :class => :user has :ticket has :group end class Attachment < Data def initialize(client, attributes) if attributes.is_a?(Hash) super else super(client, :file => attributes) end end def save upload = Upload.create!(@client, attributes) self.token = upload.token end def to_param token end end class Upload < Data include Create only_send_unnested_params has_many :attachments end class Locale < ReadResource; end class Bookmark < Resource; end class Macro < DataResource; end class Search < DataResource def self.resource_name "search" end def self.model_key "results" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zendesk_api-0.1.5 | lib/zendesk_api/resources/misc.rb |
zendesk_api-0.1.4 | lib/zendesk_api/resources/misc.rb |
zendesk_api-0.1.3 | lib/zendesk_api/resources/misc.rb |