Class: VersSdk::RequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/client.rb

Overview

Per-request options that override client defaults.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers: nil, timeout: nil) ⇒ RequestOptions

Returns a new instance of RequestOptions.



21
22
23
24
# File 'lib/vers_sdk/client.rb', line 21

def initialize(headers: nil, timeout: nil)
  @headers = headers
  @timeout = timeout
end

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



19
20
21
# File 'lib/vers_sdk/client.rb', line 19

def headers
  @headers
end

#timeoutObject

Returns the value of attribute timeout.



19
20
21
# File 'lib/vers_sdk/client.rb', line 19

def timeout
  @timeout
end