Sha256: ee747bf28f0c5f513705cd8e605e169acfca27e484b8aafe4d2b6cdbc975fd47

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

module NSIVideoGranulate
  class Client
    class Configuration
      class << self
        # Set the default {NSIVideoGranulate::Client} user
        #
        #
        # @param [String] user to set
        #
        # @return [String] the user set
        def user(user = nil)
          @user = user unless user.nil?
          @user
        end

        # Set the default {NSIVideoGranulate::Client} password
        #
        #
        # @param [String] password to set
        #
        # @return [String] the password set
        def password(password = nil)
          @password = password unless password.nil?
          @password
        end

        # Set the default {NSIVideoGranulate::Client} host
        #
        #
        # @param [String] host to set
        #
        # @return [String] the host set
        def host(host = nil)
          @host = host unless host.nil?
          @host
        end

        # Set the default {NSIVideoGranulate::Client} port
        #
        #
        # @param [String] port to set
        #
        # @return [String] the port set
        def port(port = nil)
          @port = port unless port.nil?
          @port
        end

        # See how are the settings
        #
        # @return [Hash] actual settings
        def settings
          {user: @user, password: @password, host: @host, port: @port}
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nsivideogranulate-0.2.0 lib/nsivideogranulate/configuration.rb
nsivideogranulate-0.0.2 lib/nsivideogranulate/configuration.rb
nsivideogranulate-0.0.1 lib/nsivideogranulate/configuration.rb