Class: ZendeskAPI::Ticket
- Inherits:
-
Resource
- Object
- Data
- DataResource
- Resource
- ZendeskAPI::Ticket
- Defined in:
- lib/zendesk_api/resources.rb,
lib/zendesk_api/resources.rb
Defined Under Namespace
Instance Attribute Summary (collapse)
-
- (ZendeskAPI::Association) association
inherited
from Data
The association.
-
- (Hash) attributes
(also: #to_param)
inherited
from Data
readonly
The resource's attributes.
-
- (Object) error
inherited
from DataResource
Returns the value of attribute error.
-
- (Object) error_message
inherited
from DataResource
Returns the value of attribute error_message.
-
- (Array) errors
inherited
from Data
The last received errors.
-
- (Object) response
inherited
from Data
Place to dump the last response.
Class Method Summary (collapse)
-
+ (Ticket) import(client, attributes)
Imports a ticket through the imports/tickets endpoint.
-
+ (Collection) incremental_export(client, start_time)
Gets a incremental export of tickets from the start_time until now.
Instance Method Summary (collapse)
-
- (ZendeskAPI::User) assignee
The associated object.
-
- (ZendeskAPI::User) assignee=(value)
The associated object.
-
- (ZendeskAPI::Ticket::Audit) audits(options = {})
The associated object.
-
- (ZendeskAPI::Ticket::Audit) audits=(value)
The associated object.
-
- (ZendeskAPI::User) collaborators(options = {})
The associated object.
-
- (ZendeskAPI::User) collaborators=(value)
The associated object.
-
- (ZendeskAPI::Ticket::Comment) comment
The associated object.
-
- (ZendeskAPI::Ticket::Comment) comment=(value)
The associated object.
-
- (ZendeskAPI::Topic) forum_topic
The associated object.
-
- (ZendeskAPI::Topic) forum_topic=(value)
The associated object.
-
- (ZendeskAPI::Group) group
The associated object.
-
- (ZendeskAPI::Group) group=(value)
The associated object.
-
- (ZendeskAPI::Ticket::Comment) last_comment
The associated object.
-
- (ZendeskAPI::Ticket::Comment) last_comment=(value)
The associated object.
-
- (ZendeskAPI::Ticket::Comment) last_comments(options = {})
The associated object.
-
- (ZendeskAPI::Ticket::Comment) last_comments=(value)
The associated object.
-
- (ZendeskAPI::TicketMetric) metrics
The associated object.
-
- (ZendeskAPI::TicketMetric) metrics=(value)
The associated object.
-
- (ZendeskAPI::Organization) organization
The associated object.
-
- (ZendeskAPI::Organization) organization=(value)
The associated object.
-
- (ZendeskAPI::User) requester
The associated object.
-
- (ZendeskAPI::User) requester=(value)
The associated object.
-
- (ZendeskAPI::User) submitter
The associated object.
-
- (ZendeskAPI::User) submitter=(value)
The associated object.
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
Instance Attribute Details
- (ZendeskAPI::Association) association Originally defined in class Data
The association
- (Hash) attributes (readonly) Also known as: to_param Originally defined in class Data
The resource's attributes
- (Object) error Originally defined in class DataResource
Returns the value of attribute error
- (Object) error_message Originally defined in class DataResource
Returns the value of attribute error_message
- (Array) errors Originally defined in class Data
The last received errors
- (Object) response Originally defined in class Data
Place to dump the last response
Class Method Details
+ (Ticket) import(client, attributes)
Imports a ticket through the imports/tickets endpoint
257 258 259 260 261 |
# File 'lib/zendesk_api/resources.rb', line 257 def self.import(client, attributes) ticket = new(client, attributes) return unless ticket.save(:path => "imports/tickets") ticket end |
+ (Collection) incremental_export(client, start_time)
Gets a incremental export of tickets from the start_time until now.
249 250 251 |
# File 'lib/zendesk_api/resources.rb', line 249 def self.incremental_export(client, start_time) ZendeskAPI::Collection.new(client, self, :path => "exports/tickets?start_time=#{start_time.to_i}") end |
Instance Method Details
- (ZendeskAPI::User) assignee
The associated object
233 |
# File 'lib/zendesk_api/resources.rb', line 233 has :assignee, :class => User |
- (ZendeskAPI::User) assignee=(value)
The associated object
233 |
# File 'lib/zendesk_api/resources.rb', line 233 has :assignee, :class => User |
- (ZendeskAPI::Ticket::Audit) audits(options = {})
The associated object
235 |
# File 'lib/zendesk_api/resources.rb', line 235 has_many Audit |
- (ZendeskAPI::Ticket::Audit) audits=(value)
The associated object
235 |
# File 'lib/zendesk_api/resources.rb', line 235 has_many Audit |
- (ZendeskAPI::User) collaborators(options = {})
The associated object
234 |
# File 'lib/zendesk_api/resources.rb', line 234 has_many :collaborators, :class => User |
- (ZendeskAPI::User) collaborators=(value)
The associated object
234 |
# File 'lib/zendesk_api/resources.rb', line 234 has_many :collaborators, :class => User |
- (ZendeskAPI::Ticket::Comment) comment
The associated object
241 |
# File 'lib/zendesk_api/resources.rb', line 241 has :comment, :class => Comment, :inline => true |
- (ZendeskAPI::Ticket::Comment) comment=(value)
The associated object
241 |
# File 'lib/zendesk_api/resources.rb', line 241 has :comment, :class => Comment, :inline => true |
- (ZendeskAPI::Topic) forum_topic
The associated object
238 |
# File 'lib/zendesk_api/resources.rb', line 238 has :forum_topic, :class => Topic |
- (ZendeskAPI::Topic) forum_topic=(value)
The associated object
238 |
# File 'lib/zendesk_api/resources.rb', line 238 has :forum_topic, :class => Topic |
- (ZendeskAPI::Group) group
The associated object
237 |
# File 'lib/zendesk_api/resources.rb', line 237 has Group |
- (ZendeskAPI::Group) group=(value)
The associated object
237 |
# File 'lib/zendesk_api/resources.rb', line 237 has Group |
- (ZendeskAPI::Ticket::Comment) last_comment
The associated object
242 |
# File 'lib/zendesk_api/resources.rb', line 242 has :last_comment, :class => Comment, :inline => true |
- (ZendeskAPI::Ticket::Comment) last_comment=(value)
The associated object
242 |
# File 'lib/zendesk_api/resources.rb', line 242 has :last_comment, :class => Comment, :inline => true |
- (ZendeskAPI::Ticket::Comment) last_comments(options = {})
The associated object
243 |
# File 'lib/zendesk_api/resources.rb', line 243 has_many :last_comments, :class => Comment, :inline => true |
- (ZendeskAPI::Ticket::Comment) last_comments=(value)
The associated object
243 |
# File 'lib/zendesk_api/resources.rb', line 243 has_many :last_comments, :class => Comment, :inline => true |
- (ZendeskAPI::TicketMetric) metrics
The associated object
236 |
# File 'lib/zendesk_api/resources.rb', line 236 has :metrics, :class => TicketMetric |
- (ZendeskAPI::TicketMetric) metrics=(value)
The associated object
236 |
# File 'lib/zendesk_api/resources.rb', line 236 has :metrics, :class => TicketMetric |
- (ZendeskAPI::Organization) organization
The associated object
239 |
# File 'lib/zendesk_api/resources.rb', line 239 has Organization |
- (ZendeskAPI::Organization) organization=(value)
The associated object
239 |
# File 'lib/zendesk_api/resources.rb', line 239 has Organization |
- (ZendeskAPI::User) requester
The associated object
231 |
# File 'lib/zendesk_api/resources.rb', line 231 has :requester, :class => User, :inline => :create |
- (ZendeskAPI::User) requester=(value)
The associated object
231 |
# File 'lib/zendesk_api/resources.rb', line 231 has :requester, :class => User, :inline => :create |
- (ZendeskAPI::User) submitter
The associated object
232 |
# File 'lib/zendesk_api/resources.rb', line 232 has :submitter, :class => User |
- (ZendeskAPI::User) submitter=(value)
The associated object
232 |
# File 'lib/zendesk_api/resources.rb', line 232 has :submitter, :class => User |