Class: Rosette::Integrations::Integration

Inherits:
Object
  • Object
show all
Defined in:
lib/rosette/integrations/integration.rb

Overview

The base class for all integrations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ Integration

Creates a new integration instance.

Parameters:

  • configuration (Object)

    an instance of this integration's configurator.


17
18
19
# File 'lib/rosette/integrations/integration.rb', line 17

def initialize(configuration)
  @configuration = configuration
end

Instance Attribute Details

#configurationConfigurator (readonly)

Returns the Rosette config.

Returns:

  • (Configurator)

    the Rosette config.


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rosette/integrations/integration.rb', line 10

class Integration
  attr_reader :configuration

  # Creates a new integration instance.
  #
  # @param [Object] configuration an instance of this integration's
  #   configurator.
  def initialize(configuration)
    @configuration = configuration
  end
end