Class: ECHConfig::ECHConfigContents::Extensions
- Inherits:
-
Object
- Object
- ECHConfig::ECHConfigContents::Extensions
- Defined in:
- lib/ech_config/ech_config_contents/extensions.rb,
sig/generated/ech_config/ech_config_contents/extensions.rbs
Overview
rbs_inline: enabled
Instance Attribute Summary collapse
-
#octet ⇒ Object
readonly
Returns the value of attribute octet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(octet) ⇒ Extensions
constructor
A new instance of Extensions.
- #load ⇒ String
Constructor Details
#initialize(octet) ⇒ Extensions
Returns a new instance of Extensions.
10 11 12 13 14 |
# File 'lib/ech_config/ech_config_contents/extensions.rb', line 10 def initialize(octet) # Note taht ECHConfig::ECHConfigContents::Extension only has octets. # If you need, deserialize octets to get TLS Extension objects. @octet = octet end |
Instance Attribute Details
#octet ⇒ Object (readonly)
Returns the value of attribute octet.
6 7 8 |
# File 'lib/ech_config/ech_config_contents/extensions.rb', line 6 def octet @octet end |
Class Method Details
.store(octet) ⇒ ECHConfig::ECHConfigContents::Extensions
23 24 25 |
# File 'lib/ech_config/ech_config_contents/extensions.rb', line 23 def self.store(octet) new(octet) end |
Instance Method Details
#load ⇒ String
17 18 19 |
# File 'lib/ech_config/ech_config_contents/extensions.rb', line 17 def load @octet end |