vng 1.1.0 → 1.2.0

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: 1356553075599aa2888d10740b02d282d6f6407c69bf49f67e0dbdc46475cebc
4
- data.tar.gz: a8d09b9454c4fe51de636f61a880614eca6d12e9fc8455e5fc3888f324eaab9c
3
+ metadata.gz: 6331c32b323783c597456c56d604a7896c3a5d1219fe2f8c9a6f1f83299075eb
4
+ data.tar.gz: e90b4794467713d98f0adfc3c3edb5f0e8fae0d6264b77752d6aa71b06715b61
5
5
  SHA512:
6
- metadata.gz: 273b479db2901d89fbdd880383cdcf212aaffcfd1637ca973464567b33b98eafeb2036a6e7e46357d6e7aadc87d70876733bc7094c7c727a0e04118f0b8772fe
7
- data.tar.gz: '088ea1b5e63a121b23f956b533d34b3adcf5a570851d999e583197134ae5af69b8345e9ff4946d15183723e031c87015dae8b112e1bf30edc2a2d683b3ca8ee1'
6
+ metadata.gz: 25dd494526c573d342f30f6a1b393d2972b50ea74b60ccb56f6097b38e23c01b225576b5337fcf9c638a30e66119ec4217b1d9268b7fbf0d3c46a08e2ddbc570
7
+ data.tar.gz: 64db905f1777fe5e1866d84ea9c1d7a6eb3c224c5a5ee7680fdf319803cfbe64f15ec296e26342ab4ad5da0f09248b770d182548bf0218eb8e2356ac4fe6b498
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2] - 2024-11-20
4
+
5
+ - Adds WorkOrder#url and Case#url
6
+
3
7
  ## [1.1] - 2024-11-20
4
8
 
5
9
  - Support optional ActiveSupport::Notifications
data/lib/vng/case.rb CHANGED
@@ -32,6 +32,11 @@ module Vng
32
32
  new id: data['Case']['objectID']
33
33
  end
34
34
 
35
+ # Returns the URL to manage the case in the Vonigo UI.
36
+ def url
37
+ "https://#{self.class.host}/Client/Case/Case_Main.aspx?caseID=#{id}"
38
+ end
39
+
35
40
  def destroy
36
41
  body = {
37
42
  method: '4',
data/lib/vng/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vng
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -32,6 +32,11 @@ module Vng
32
32
  new id: data['WorkOrder']['objectID']
33
33
  end
34
34
 
35
+ # Returns the URL to manage the work order in the Vonigo UI.
36
+ def url
37
+ "https://#{self.class.host}/Schedule/Job/Job_Main.aspx?woID=#{id}"
38
+ end
39
+
35
40
  private
36
41
 
37
42
  def self.charges_for(line_items)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob