Sha256: 2b2d5dfa63a1844c415cd44d644d68b392361af16ac77bf73deb499be45a77e0

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module Ukemi
  class Configuration
    attr_accessor :ordering_key
    attr_accessor :sort_order

    def initialize
      @ordering_key = "last_seen"
      @sort_order = "DESC"
    end
  end

  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    attr_writer :configuration

    def configure
      yield configuration
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ukemi-0.4.0 lib/ukemi/configuration.rb
ukemi-0.3.0 lib/ukemi/configuration.rb
ukemi-0.2.0 lib/ukemi/configuration.rb