Class: AutotaskRuby::Ticket
- Inherits:
-
Object
- Object
- AutotaskRuby::Ticket
- Defined in:
- lib/autotask_ruby/ticket.rb
Overview
Represents the Autotask Entity Ticket
Constant Summary collapse
- FIELDS =
%i[id AccountID ContactID CreateDate Description DueDateTime LastActivityDate AssignedResourceID Status TicketNumber Title].freeze .each do |field| attr_accessor :"#{field.to_s.underscore}" end
Constants included from Constants
Constants::AUTOTASK_TIME_FORMAT
Instance Method Summary collapse
-
#account ⇒ Object
Returns the associated Account.
-
#contact ⇒ Object
Returns the associated Contact.
Methods included from Query
Methods included from Entity
#build, #create, #field_set, #fields_to_xml, #format_field_to_xml, included, #initialize, #post_initialize, #to_bool, #to_date_time, #update
Methods included from Association
#belongs_to, #has_many, #has_one
Instance Method Details
#account ⇒ Object
Returns the associated Account
15 16 17 |
# File 'lib/autotask_ruby/ticket.rb', line 15 def account find('Account', account_id) end |
#contact ⇒ Object
Returns the associated Contact
20 21 22 |
# File 'lib/autotask_ruby/ticket.rb', line 20 def contact find('Contact', contact_id) end |