Module: ForstokTrigger::Webhook::Repository

Defined in:
lib/forstok_trigger/webhook/repository.rb,
lib/forstok_trigger/webhook/repository/webhook_repository.rb

Overview

Class Trigger is main class for run perform

Defined Under Namespace

Modules: WebhookRepository

Class Method Summary collapse

Class Method Details

.clientObject



8
9
10
11
12
13
14
15
16
# File 'lib/forstok_trigger/webhook/repository.rb', line 8

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

.configurationObject



18
19
20
# File 'lib/forstok_trigger/webhook/repository.rb', line 18

def self.configuration
  @configuration ||= ForstokTrigger::Webhook.configuration
end