Class: BundleUp::Unify::Client
- Inherits:
-
Object
- Object
- BundleUp::Unify::Client
- Defined in:
- lib/bundleup/unify.rb,
sig/bundleup/unify.rbs
Overview
Client for Unify API endpoints.
Instance Attribute Summary collapse
-
#api_key ⇒ String
readonly
Returns the value of attribute api_key.
-
#connection_id ⇒ String
readonly
Returns the value of attribute connection_id.
Instance Method Summary collapse
-
#chat ⇒ Chat
Access the Chat API for the connection.
-
#crm ⇒ CRM
Access the CRM API for the connection.
-
#drive ⇒ Drive
Access the Drive API for the connection.
-
#git ⇒ Git
Access the Git API for the connection.
-
#initialize(api_key, connection_id) ⇒ Client
constructor
A new instance of Client.
- #pm ⇒ PM
-
#ticketing ⇒ Object
Access the Ticketing API for the connection.
Constructor Details
#initialize(api_key, connection_id) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 14 15 16 17 |
# File 'lib/bundleup/unify.rb', line 9 def initialize(api_key, connection_id) @ticketing = BundleUp::Unify::Ticketing.new(api_key, connection_id) @chat = BundleUp::Unify::Chat.new(api_key, connection_id) @git = BundleUp::Unify::Git.new(api_key, connection_id) @crm = BundleUp::Unify::CRM.new(api_key, connection_id) @drive = BundleUp::Unify::Drive.new(api_key, connection_id) @api_key = api_key @connection_id = connection_id end |
Instance Attribute Details
#api_key ⇒ String (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/bundleup/unify.rb', line 7 def api_key @api_key end |
#connection_id ⇒ String (readonly)
Returns the value of attribute connection_id.
7 8 9 |
# File 'lib/bundleup/unify.rb', line 7 def connection_id @connection_id end |
Instance Method Details
#chat ⇒ Chat
Access the Chat API for the connection.
20 21 22 |
# File 'lib/bundleup/unify.rb', line 20 def chat @chat ||= BundleUp::Unify::Chat.new(api_key, connection_id) end |
#crm ⇒ CRM
Access the CRM API for the connection.
30 31 32 |
# File 'lib/bundleup/unify.rb', line 30 def crm @crm ||= BundleUp::Unify::CRM.new(api_key, connection_id) end |
#drive ⇒ Drive
Access the Drive API for the connection.
40 41 42 |
# File 'lib/bundleup/unify.rb', line 40 def drive @drive ||= BundleUp::Unify::Drive.new(api_key, connection_id) end |
#git ⇒ Git
Access the Git API for the connection.
25 26 27 |
# File 'lib/bundleup/unify.rb', line 25 def git @git ||= BundleUp::Unify::Git.new(api_key, connection_id) end |
#pm ⇒ PM
11 |
# File 'sig/bundleup/unify.rbs', line 11
def pm: () -> PM
|