Sha256: d9418b23344feec85fe91c31757d7dcd27f277c2e6b0725e4996214f4a9a76c4
Contents?: true
Size: 913 Bytes
Versions: 4
Compression:
Stored size: 913 Bytes
Contents
# frozen_string_literal: true module AutotaskRuby # Represents the Autotask Entity ServiceCall class ServiceCall include Entity include Query FIELDS = %i[id AccountID StartDateTime EndDateTime Description Complete CreateDateTime LastModifiedDateTime Duration Status].freeze .each do |field| attr_accessor :"#{field.to_s.underscore}" end # Returns the associated ResourceID. def resource_id service_call_ticket = find('ServiceCallTicket', 'ServiceCallId', id) service_call_ticket_resource = find('ServiceCallTicketResource', 'ServiceCallTicketId', service_call_ticket.id) service_call_ticket_resource.resource_id end # Returns the associated Resource def resource find('Resource', resource_id) end end end
Version data entries
4 entries across 4 versions & 1 rubygems