Class: TestHeaders
- Inherits:
-
Object
- Object
- TestHeaders
- Includes:
- ApiClients
- Defined in:
- lib/stitches/spec/test_headers.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(options = {}) ⇒ TestHeaders
constructor
A new instance of TestHeaders.
Methods included from ApiClients
Constructor Details
#initialize(options = {}) ⇒ TestHeaders
Returns a new instance of TestHeaders.
3 4 5 6 7 8 9 10 11 |
# File 'lib/stitches/spec/test_headers.rb', line 3 def initialize(={}) full_mimetype = mime_type() @headers = { "Accept" => full_mimetype, "Content-Type" => full_mimetype, }.tap { |headers| (headers,) unless Stitches.configuration.disable_api_key_support } end |
Instance Method Details
#headers ⇒ Object
13 14 15 |
# File 'lib/stitches/spec/test_headers.rb', line 13 def headers @headers end |