Sha256: 7dc0ba08219190453247aa5dd4f90b169368bd8156c7ad503de842a63f72f0d8

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

module NSISam
  class Client
    class Configuration
      class << self
        def user(user = nil)
          @user = user unless user.nil?
          @user
        end

        def password(password = nil)
          @password = password unless password.nil?
          @password
        end

        def host(host = nil)
          @host = host unless host.nil?
          @host
        end

        def port(port = nil)
          @port = port unless port.nil?
          @port
        end

        def settings
          {user: @user, password: @password, host: @host, port: @port}
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nsisam-0.5.2 lib/nsisam/configuration.rb
nsisam-0.4.0 lib/nsisam/configuration.rb