Class: LogStash::Inputs::Http::TLS::TLSOption

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/logstash/inputs/http/tls.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, version) ⇒ TLSOption

Returns a new instance of TLSOption.



8
9
10
11
# File 'lib/logstash/inputs/http/tls.rb', line 8

def initialize(name, version)
  @name = name
  @version = version
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/logstash/inputs/http/tls.rb', line 7

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



7
8
9
# File 'lib/logstash/inputs/http/tls.rb', line 7

def version
  @version
end

Instance Method Details

#<=>(other) ⇒ Object



13
14
15
# File 'lib/logstash/inputs/http/tls.rb', line 13

def <=>(other)
  version <=> other.version
end