Sha256: 53934b844a02a8794cbf97bd82f9a0ae855834a466b9dd4ba38036a682b3f413

Contents?: true

Size: 318 Bytes

Versions: 8

Compression:

Stored size: 318 Bytes

Contents

module Ratis

  class Config

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

    def valid?
      !(endpoint.nil? || endpoint.empty? || namespace.nil? || namespace.empty? || appid.nil? || appid.empty?)
    end

  private

    def initialize
      @timeout = 5
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ratis-3.6.6 lib/ratis/config.rb
ratis-3.6.5 lib/ratis/config.rb
ratis-3.6.4 lib/ratis/config.rb
ratis-3.6.3 lib/ratis/config.rb
ratis-3.6.2 lib/ratis/config.rb
ratis-3.6.1 lib/ratis/config.rb
ratis-3.6.0 lib/ratis/config.rb
ratis-3.5.0 lib/ratis/config.rb