freshdesk-rest 0.1.2 → 0.1.3

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: 1bde748f52273cf54e725cb9f05209ac262bf06afb947a869568d4d8ebfb36de
4
- data.tar.gz: 420a6b5ec5952b3f0be6d7887b32d4c866cd9aadc488cd4f37d8c6a0f5fe6dc0
3
+ metadata.gz: 3f86b1251d4cef1db7277998994b31b98c0a5e19931c38ad86ad083630ae7152
4
+ data.tar.gz: 82fb292906f78b9269358ea1da1269bc8b114893c8124772c41eeb840341aaac
5
5
  SHA512:
6
- metadata.gz: 82381340fa9fe237cd9efc09d88315346974dd0878ce2fb3d4829a81522b28d89f7f8064376f2db676610316faeb39fbc54d224b2a49df9d1733b96071bbbd96
7
- data.tar.gz: 0b049d453b6432077f21ec84e3e5ac0f2786a3366df35444f1924e83b1ce9dcfb9e4d04ac71ba1975d4d21fff54cc68853d9c439b7cd7c7e32605c2974ea5ea8
6
+ metadata.gz: 622fb0b2d8708023ce4ed3deaa06de70f1581adad5a9db900286f655be886997c74f1bef67502a944f5562f78c7e6fe95d9faaae83842b7d73486b3128921cc5
7
+ data.tar.gz: 59810509b3e277cc175a1caf8136de0dd22b673a2356cedd7028c7bc522cd6769e3980330e317c41281554d28f75b8b075d5784be0da9961a1d499ea9fb9f493
@@ -15,6 +15,10 @@ module Freshdesk
15
15
  def self.contact_resource
16
16
  Freshdesk::Rest::Resource::Contact.new(client: api)
17
17
  end
18
+
19
+ def self.ticket_resource
20
+ Freshdesk::Rest::Resource::Ticket.new(client: api)
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -0,0 +1,18 @@
1
+ require_relative 'parser'
2
+
3
+ module Freshdesk
4
+ module Rest
5
+ module Resource
6
+ class Ticket
7
+ def initialize(client:)
8
+ @client = client
9
+ @path = '/tickets'
10
+ end
11
+
12
+ def post(data:)
13
+ Parser.parse(@client.post(@path, data))
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,5 +1,5 @@
1
1
  module Freshdesk
2
2
  module Rest
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freshdesk-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helpling
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A ruby gem to interact with Freshdesk REST resources
14
14
  email: tech@helpling.com
@@ -22,13 +22,14 @@ files:
22
22
  - lib/freshdesk-rest/factory.rb
23
23
  - lib/freshdesk-rest/resource/contact.rb
24
24
  - lib/freshdesk-rest/resource/parser.rb
25
+ - lib/freshdesk-rest/resource/ticket.rb
25
26
  - lib/freshdesk-rest/version.rb
26
27
  homepage: https://rubygems.org/gems/freshdesk-rest
27
28
  licenses:
28
29
  - MIT
29
30
  metadata:
30
31
  source_code_uri: https://github.com/Helpling/freshdesk-rest
31
- post_install_message:
32
+ post_install_message:
32
33
  rdoc_options: []
33
34
  require_paths:
34
35
  - lib
@@ -43,9 +44,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
46
  requirements: []
46
- rubyforge_project:
47
- rubygems_version: 2.7.3
48
- signing_key:
47
+ rubygems_version: 3.0.3
48
+ signing_key:
49
49
  specification_version: 4
50
50
  summary: Freshdesk rest api resource collection
51
51
  test_files: []