Class: BundleUp::Unify::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bundleup/unify.rb,
sig/bundleup/unify.rbs

Overview

Client for Unify API endpoints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, connection_id) ⇒ Client

Returns a new instance of Client.

Parameters:

  • api_key (String)
  • connection_id (String)


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_keyString (readonly)

Returns the value of attribute api_key.

Returns:

  • (String)


7
8
9
# File 'lib/bundleup/unify.rb', line 7

def api_key
  @api_key
end

#connection_idString (readonly)

Returns the value of attribute connection_id.

Returns:

  • (String)


7
8
9
# File 'lib/bundleup/unify.rb', line 7

def connection_id
  @connection_id
end

Instance Method Details

#chatChat

Access the Chat API for the connection.

Returns:



20
21
22
# File 'lib/bundleup/unify.rb', line 20

def chat
  @chat ||= BundleUp::Unify::Chat.new(api_key, connection_id)
end

#crmCRM

Access the CRM API for the connection.

Returns:



30
31
32
# File 'lib/bundleup/unify.rb', line 30

def crm
  @crm ||= BundleUp::Unify::CRM.new(api_key, connection_id)
end

#driveDrive

Access the Drive API for the connection.

Returns:



40
41
42
# File 'lib/bundleup/unify.rb', line 40

def drive
  @drive ||= BundleUp::Unify::Drive.new(api_key, connection_id)
end

#gitGit

Access the Git API for the connection.

Returns:



25
26
27
# File 'lib/bundleup/unify.rb', line 25

def git
  @git ||= BundleUp::Unify::Git.new(api_key, connection_id)
end

#pmPM

Returns:

  • (PM)


11
# File 'sig/bundleup/unify.rbs', line 11

def pm: () -> PM

#ticketingObject

Access the Ticketing API for the connection.



35
36
37
# File 'lib/bundleup/unify.rb', line 35

def ticketing
  @ticketing ||= BundleUp::Unify::Ticketing.new(api_key, connection_id)
end