Sha256: c0e16ece4e52212ff7f675034d651143fcb516114f1ffd35ea2ceecb65460de7

Contents?: true

Size: 323 Bytes

Versions: 29

Compression:

Stored size: 323 Bytes

Contents

module Ratis

  class Config

    attr_accessor :endpoint, :namespace, :proxy, :timeout, :log, :log_level

    def valid?
      return false if endpoint.nil? or namespace.nil?
      return false if endpoint.empty? or namespace.empty?
      true
    end

  private

    def initialize
      @timeout = 5
    end

  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ratis-3.4.3 lib/ratis/config.rb
ratis-3.4.2 lib/ratis/config.rb
ratis-3.4.1 lib/ratis/config.rb
ratis-3.4.0 lib/ratis/config.rb
ratis-3.3.7 lib/ratis/config.rb
ratis-3.3.6 lib/ratis/config.rb
ratis-3.3.5 lib/ratis/config.rb
ratis-3.3.4 lib/ratis/config.rb
ratis-3.3.3 lib/ratis/config.rb
ratis-3.3.2 lib/ratis/config.rb
ratis-3.3.1 lib/ratis/config.rb
ratis-3.3.0 lib/ratis/config.rb
ratis-3.2.1 lib/ratis/config.rb
ratis-3.2.0 lib/ratis/config.rb
ratis-3.1.8 lib/ratis/config.rb
ratis-3.1.7 lib/ratis/config.rb
ratis-3.1.6 lib/ratis/config.rb
ratis-3.1.5.1 lib/ratis/config.rb
ratis-3.1.5 lib/ratis/config.rb
ratis-3.1.4 lib/ratis/config.rb