Class: Wajub::RequestOptions
- Inherits:
-
Object
- Object
- Wajub::RequestOptions
- Defined in:
- lib/wajub/request_options.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#idempotency_key ⇒ Object
readonly
Returns the value of attribute idempotency_key.
-
#sync ⇒ Object
readonly
Returns the value of attribute sync.
Instance Method Summary collapse
-
#initialize(idempotency_key: nil, headers: nil, sync: nil) ⇒ RequestOptions
constructor
A new instance of RequestOptions.
Constructor Details
#initialize(idempotency_key: nil, headers: nil, sync: nil) ⇒ RequestOptions
Returns a new instance of RequestOptions.
7 8 9 10 11 |
# File 'lib/wajub/request_options.rb', line 7 def initialize(idempotency_key: nil, headers: nil, sync: nil) @idempotency_key = idempotency_key @headers = headers || {} @sync = sync end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/wajub/request_options.rb', line 5 def headers @headers end |
#idempotency_key ⇒ Object (readonly)
Returns the value of attribute idempotency_key.
5 6 7 |
# File 'lib/wajub/request_options.rb', line 5 def idempotency_key @idempotency_key end |
#sync ⇒ Object (readonly)
Returns the value of attribute sync.
5 6 7 |
# File 'lib/wajub/request_options.rb', line 5 def sync @sync end |