sirportly 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sirportly.rb CHANGED
@@ -31,7 +31,7 @@ require 'sirportly/data_objects/ticket_update'
31
31
  require 'sirportly/data_objects/user'
32
32
 
33
33
  module Sirportly
34
- VERSION = '1.3.7'
34
+ VERSION = '1.3.8'
35
35
 
36
36
  class << self
37
37
 
@@ -126,6 +126,10 @@ module Sirportly
126
126
  def create_api_token(params = {})
127
127
  ApiToken.create(self, params)
128
128
  end
129
+
130
+ def contact_tickets(params = {})
131
+ Ticket.contact(self, params)
132
+ end
129
133
 
130
134
  ## Enable or disable ticket mode for the token's account
131
135
  def import_mode(status = nil)
@@ -88,6 +88,14 @@ module Sirportly
88
88
  false
89
89
  end
90
90
  end
91
+
92
+ def self.contact(client, options)
93
+ if req = client.request('tickets/contact', options)
94
+ DataSet.new(client, req, self)
95
+ else
96
+ false
97
+ end
98
+ end
91
99
 
92
100
  private
93
101
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sirportly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: