Class: VersSdk::RequestOptions
- Inherits:
-
Object
- Object
- VersSdk::RequestOptions
- Defined in:
- lib/vers_sdk/client.rb
Overview
Per-request options that override client defaults.
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(headers: nil, timeout: nil) ⇒ RequestOptions
constructor
A new instance of RequestOptions.
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
#headers ⇒ Object
Returns the value of attribute headers.
19 20 21 |
# File 'lib/vers_sdk/client.rb', line 19 def headers @headers end |
#timeout ⇒ Object
Returns the value of attribute timeout.
19 20 21 |
# File 'lib/vers_sdk/client.rb', line 19 def timeout @timeout end |