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 +4 -4
- data/lib/freshdesk-rest/factory.rb +4 -0
- data/lib/freshdesk-rest/resource/ticket.rb +18 -0
- data/lib/freshdesk-rest/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f86b1251d4cef1db7277998994b31b98c0a5e19931c38ad86ad083630ae7152
|
4
|
+
data.tar.gz: 82fb292906f78b9269358ea1da1269bc8b114893c8124772c41eeb840341aaac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 622fb0b2d8708023ce4ed3deaa06de70f1581adad5a9db900286f655be886997c74f1bef67502a944f5562f78c7e6fe95d9faaae83842b7d73486b3128921cc5
|
7
|
+
data.tar.gz: 59810509b3e277cc175a1caf8136de0dd22b673a2356cedd7028c7bc522cd6769e3980330e317c41281554d28f75b8b075d5784be0da9961a1d499ea9fb9f493
|
@@ -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
|
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.
|
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:
|
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
|
-
|
47
|
-
|
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: []
|