Class: Leash::Integrations::Namespace
- Inherits:
-
Object
- Object
- Leash::Integrations::Namespace
- Defined in:
- lib/leash/integrations.rb
Overview
‘leash.integrations` — typed provider namespaces plus a generic `.provider(name)` escape hatch for un-typed providers (Slack, GitHub, HubSpot, Jira, …). Mirrors the TS `leash.integrations` namespace and the Python `IntegrationsNamespace`.
Method aliases keep the TS provider names addressable:
leash.integrations.calendar # canonical (matches TS shape)
leash.integrations.google_calendar # alias for calendar
leash.integrations.drive # canonical
leash.integrations.google_drive # alias for drive
Instance Attribute Summary collapse
-
#calendar ⇒ Object
(also: #google_calendar)
readonly
Returns the value of attribute calendar.
-
#drive ⇒ Object
(also: #google_drive)
readonly
Returns the value of attribute drive.
-
#gmail ⇒ Object
readonly
Returns the value of attribute gmail.
-
#linear ⇒ Object
readonly
Returns the value of attribute linear.
Instance Method Summary collapse
-
#initialize(transport) ⇒ Namespace
constructor
A new instance of Namespace.
-
#provider(name) ⇒ Object
Generic escape hatch — ‘leash.integrations.provider(’slack’).call(…)‘.
Constructor Details
#initialize(transport) ⇒ Namespace
Returns a new instance of Namespace.
23 24 25 26 27 28 29 |
# File 'lib/leash/integrations.rb', line 23 def initialize(transport) @transport = transport @gmail = Gmail.new(transport) @calendar = Calendar.new(transport) @drive = Drive.new(transport) @linear = Linear.new(transport) end |
Instance Attribute Details
#calendar ⇒ Object (readonly) Also known as: google_calendar
Returns the value of attribute calendar.
31 32 33 |
# File 'lib/leash/integrations.rb', line 31 def calendar @calendar end |
#drive ⇒ Object (readonly) Also known as: google_drive
Returns the value of attribute drive.
31 32 33 |
# File 'lib/leash/integrations.rb', line 31 def drive @drive end |
#gmail ⇒ Object (readonly)
Returns the value of attribute gmail.
31 32 33 |
# File 'lib/leash/integrations.rb', line 31 def gmail @gmail end |
#linear ⇒ Object (readonly)
Returns the value of attribute linear.
31 32 33 |
# File 'lib/leash/integrations.rb', line 31 def linear @linear end |