autotask_ruby 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aca9070775d5f794a9b3cc8cc1b424d9a54f111c4512afc0d21648c4a2222ef4
4
- data.tar.gz: f4b5cc1f072531d8bfeee88577b61ae7972b64fbb404ee17fd56c6b72b207502
3
+ metadata.gz: 37dc87bd4c160933cc6c149076de15c32484450ddec0327fa98a931ba2b6897c
4
+ data.tar.gz: 4908fd5ded56d50c66f42368099d8b0f9244c92f7503f5dfaf7ba543ae21feab
5
5
  SHA512:
6
- metadata.gz: f280301a8d56540065ab99dcde1bd3e348851588c7a5ff47918e05dd4b596686e2ce587890d71ef19116cd49dc49d2789230e1ba2ff24f9671334430da7cbd71
7
- data.tar.gz: 15bb18c97fbc2bb1eac380e44398707c8f86f731c7e9a86985690502bbe4c1eb207b2c09454af740a0769ea1776c61a01c23b2c33c21cefa6d9599a54a12cfcb
6
+ metadata.gz: cd8337045aadc8c0c67a048de135de6726df56dc85bc9d7056434a7a44e288ee02568a59e5e66b80404d09d3ac3184f951293b8a3d3dd0c7fe423be71a7066e3
7
+ data.tar.gz: 37a1e4494512c5649645952e2280a7a6a2946d6aade0dab7aed8df8878afee8615c166ac8b45e630a3a5a4cddb826ee01d69c6dede36b286fec950c4c9845e99
@@ -4,15 +4,21 @@ module AutotaskRuby
4
4
  # Represents the Autotask Entity Ticket
5
5
  class Ticket
6
6
  include Entity
7
+ include Query
7
8
 
8
9
  FIELDS = %i[id AccountID ContactID CreateDate Description DueDateTime LastActivityDate AssignedResourceID Status TicketNumber Title].freeze
9
10
  .each do |field|
10
11
  attr_accessor :"#{field.to_s.underscore}"
11
12
  end
12
13
 
13
- def post_initialize
14
- belongs_to :account
15
- belongs_to :contact
14
+ # Returns the associated Account
15
+ def account
16
+ find('Account', account_id)
17
+ end
18
+
19
+ # Returns the associated Contact
20
+ def contact
21
+ find('Contact', contact_id)
16
22
  end
17
23
  end
18
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AutotaskRuby
4
- VERSION = '2.3.1'
4
+ VERSION = '2.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotask_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared L Jennings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport