Class: Lens::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_keyObject

Returns the value of attribute app_key.



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

def app_key
  @app_key
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

#secretObject

Returns the value of attribute secret.



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

def secret
  @secret
end

#show_memory_usageObject

Returns the value of attribute show_memory_usage.



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

def show_memory_usage
  @show_memory_usage
end

Instance Method Details

#compressorObject



17
18
19
# File 'lib/lens/configuration.rb', line 17

def compressor
  default_compressor
end

#with_memory_usage?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/lens/configuration.rb', line 21

def with_memory_usage?
  @show_memory_usage || default_memory_usage
end