zen_freshdesk 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zen_freshdesk/version.rb +1 -1
- data/lib/zen_freshdesk.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2462d6ca9d89272f1ad3ab52a2ec87c2fcf6ed5
|
4
|
+
data.tar.gz: 85ffc063a62db91ffeb28cb3e2c396252d2b150d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23b5ce1840ba14bcbfff499a419179faf02cf3433dceb8a411c52c009187b464dcc4d0052b80aee02284d0ca3cfe888fefd846ae0e555fb5b70d05f269f7f7f1
|
7
|
+
data.tar.gz: b94fc116b8db2d5f3c28ec2da6af0892ff4a506d1b71a4a5a19037fd556b8ea2ce92bf89f30e78b591513cbbe0aaa1ff57290eecf03ecb4829cd5c56d4a7ad1c
|
data/lib/zen_freshdesk.rb
CHANGED
@@ -4,6 +4,15 @@ require 'base64'
|
|
4
4
|
require 'json'
|
5
5
|
|
6
6
|
module ZenFreshdesk
|
7
|
+
class << self
|
8
|
+
attr_accessor :configuration
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.configure
|
12
|
+
self.configuration ||= Configuration.new
|
13
|
+
yield(configuration)
|
14
|
+
end
|
15
|
+
|
7
16
|
class Configuration
|
8
17
|
attr_accessor :uri_api, :api_key, :projects, :requester_id, :submitter_id, :responder_id,
|
9
18
|
:subject, :description, :header, :email
|