Sha256: b23f7fd76ee0c05c18154bfe02cd08323d69cb1f2705407a654fc7137a1a38fa

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module WSDirector
  # WSDirector configuration
  class Configuration
    attr_accessor :ws_url, :scenario_path, :colorize, :scale,
      :sync_timeout

    def initialize
      reset!
    end

    def colorize?
      colorize == true
    end

    # Restore to defaults
    def reset!
      @scale = 1
      @colorize = false
      @sync_timeout = 5
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wsdirector-cli-0.4.0 lib/wsdirector/configuration.rb