Sha256: c4e3d2eef4285da37c55dc246ea5f5369581ef9d592eadef102d80c038f3d4e2

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

require "jobshop/engine"

module Jobshop
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end
  end

  class Configuration
    attr_writer :canonical_name

    def initialize
      @canonical_name = "localhost:3000"
    end

    def default_url_options
      { host: @canonical_name }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobshop-0.0.101 lib/jobshop.rb
jobshop-0.0.67 lib/jobshop.rb
jobshop-0.0.61 lib/jobshop.rb
jobshop-0.0.59 lib/jobshop.rb
jobshop-0.0.53 lib/jobshop.rb