Sha256: ae7b0d5a55b4fde127bf93bc55aec27608c0544d57d85b2d377b2f3092851e3e

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module Ratis

  class Config

    attr_accessor :endpoint, :namespace, :proxy, :timeout

    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

3 entries across 3 versions & 1 rubygems

Version Path
ratis-2.5.2.4 lib/ratis/config.rb
ratis-2.5.2.2 lib/ratis/config.rb
ratis-2.5.2.1 lib/ratis/config.rb