Class: BoaVista::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/boa_vista/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def code
  @code
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def password
  @password
end

#proxy_passObject

Returns the value of attribute proxy_pass.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def proxy_pass
  @proxy_pass
end

#proxy_urlObject

Returns the value of attribute proxy_url.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def proxy_url
  @proxy_url
end

#proxy_userObject

Returns the value of attribute proxy_user.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def proxy_user
  @proxy_user
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/boa_vista/configuration.rb', line 3

def url
  @url
end

Instance Method Details

#has_proxy?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/boa_vista/configuration.rb', line 5

def has_proxy?
  !self.proxy_url.nil?
end