Class: Wajub::RequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/wajub/request_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject (readonly)

Returns the value of attribute headers.



5
6
7
# File 'lib/wajub/request_options.rb', line 5

def headers
  @headers
end

#idempotency_keyObject (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

#syncObject (readonly)

Returns the value of attribute sync.



5
6
7
# File 'lib/wajub/request_options.rb', line 5

def sync
  @sync
end