Class: Deribit::ImmutableHeaderKey
- Inherits:
-
Object
- Object
- Deribit::ImmutableHeaderKey
- Defined in:
- lib/deribit/immutable_header_key.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Method Summary collapse
- #capitalize ⇒ Object
- #downcase ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(key) ⇒ ImmutableHeaderKey
constructor
A new instance of ImmutableHeaderKey.
- #split ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(key) ⇒ ImmutableHeaderKey
Returns a new instance of ImmutableHeaderKey.
4 5 6 |
# File 'lib/deribit/immutable_header_key.rb', line 4 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
2 3 4 |
# File 'lib/deribit/immutable_header_key.rb', line 2 def key @key end |
Class Method Details
.to_s ⇒ Object
29 30 31 |
# File 'lib/deribit/immutable_header_key.rb', line 29 def self.to_s key end |
Instance Method Details
#capitalize ⇒ Object
12 13 14 |
# File 'lib/deribit/immutable_header_key.rb', line 12 def capitalize self end |
#downcase ⇒ Object
8 9 10 |
# File 'lib/deribit/immutable_header_key.rb', line 8 def downcase self end |
#eql?(other) ⇒ Boolean
24 25 26 |
# File 'lib/deribit/immutable_header_key.rb', line 24 def eql?(other) key.eql? other.key.eql? end |
#hash ⇒ Object
20 21 22 |
# File 'lib/deribit/immutable_header_key.rb', line 20 def hash key.hash end |
#split ⇒ Object
16 17 18 |
# File 'lib/deribit/immutable_header_key.rb', line 16 def split(*) [self] end |
#to_s ⇒ Object
28 29 30 31 32 33 |
# File 'lib/deribit/immutable_header_key.rb', line 28 def to_s def self.to_s key end self end |