Module: WebhookTrigger::Repository

Defined in:
lib/webhook_trigger/repository.rb,
lib/webhook_trigger/repository/trigger_repository.rb

Overview

Class Trigger is main class for run perform

Defined Under Namespace

Modules: TriggerRepository

Class Method Summary collapse

Class Method Details

.clientObject



6
7
8
9
10
11
12
13
14
# File 'lib/webhook_trigger/repository.rb', line 6

def self.client
  Mysql2::Client.new(
    host: configuration.host,
    port: configuration.port,
    username: configuration.username,
    password: configuration.password,
    database: configuration.db
  )
end

.configurationObject



16
17
18
# File 'lib/webhook_trigger/repository.rb', line 16

def self.configuration
  @configuration ||= WebhookTrigger.configuration
end