Class: Playwright::HttpHeaders
- Inherits:
-
Object
- Object
- Playwright::HttpHeaders
- Defined in:
- lib/playwright/http_headers.rb
Instance Method Summary collapse
- #as_serialized ⇒ Object
-
#initialize(headers) ⇒ HttpHeaders
constructor
A new instance of HttpHeaders.
Constructor Details
#initialize(headers) ⇒ HttpHeaders
Returns a new instance of HttpHeaders.
4 5 6 |
# File 'lib/playwright/http_headers.rb', line 4 def initialize(headers) @headers = headers end |
Instance Method Details
#as_serialized ⇒ Object
8 9 10 11 12 |
# File 'lib/playwright/http_headers.rb', line 8 def as_serialized @headers.map do |key, value| { name: key, value: value } end end |