Module: Imageomatic

Defined in:
lib/imageomatic.rb,
lib/imageomatic/cli.rb,
lib/imageomatic/client.rb,
lib/imageomatic/engine.rb,
lib/imageomatic/version.rb,
lib/imageomatic/configuration.rb,
lib/imageomatic/key_generator.rb,
lib/imageomatic/url_signature.rb,
app/jobs/imageomatic/application_job.rb,
app/models/imageomatic/opengraph/base.rb,
app/models/imageomatic/opengraph/image.rb,
app/models/imageomatic/opengraph/model.rb,
app/models/imageomatic/opengraph/metatag.rb,
app/models/imageomatic/opengraph/twitter.rb,
app/models/imageomatic/application_record.rb,
app/helpers/imageomatic/application_helper.rb,
app/mailers/imageomatic/application_mailer.rb,
app/helpers/imageomatic/opengraph_tag_helper.rb,
app/controllers/concerns/imageomatic/opengraph.rb,
app/models/imageomatic/opengraph/metatag_mapper.rb,
app/controllers/imageomatic/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Opengraph, OpengraphTagHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, CLI, Client, Configuration, Engine, InstallGenerator, KeyGenerator, UrlSignature

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.clientObject



12
13
14
# File 'lib/imageomatic.rb', line 12

def client
  @client ||= Client.new
end

.configure(&block) ⇒ Object



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

def configure(&block)
  block.call client.configuration
end

.key_generator(environment: Rails.env) ⇒ Object



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

def key_generator(environment: Rails.env)
  @key_generator ||= KeyGenerator.new(environment: environment)
end