Class: Hypertube::Utils::ConnectionData
- Inherits:
-
Object
- Object
- Hypertube::Utils::ConnectionData
show all
- Defined in:
- lib/hypertube-ruby-sdk/utils/connection_data.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ConnectionData.
6
7
8
|
# File 'lib/hypertube-ruby-sdk/utils/connection_data.rb', line 6
def initialize
@headers = {}
end
|
Instance Method Details
14
15
16
|
# File 'lib/hypertube-ruby-sdk/utils/connection_data.rb', line 14
def (key, value)
@headers[key.to_s] = value.to_s
end
|
18
19
20
21
22
23
24
|
# File 'lib/hypertube-ruby-sdk/utils/connection_data.rb', line 18
def ()
return if .nil?
.each do |key, value|
(key, value)
end
end
|
10
11
12
|
# File 'lib/hypertube-ruby-sdk/utils/connection_data.rb', line 10
def
@headers.dup
end
|
26
27
28
29
|
# File 'lib/hypertube-ruby-sdk/utils/connection_data.rb', line 26
def ()
@headers = {}
()
end
|