Class: Shift4::RequestOptions

Inherits:
Configuration show all
Defined in:
lib/shift4/request_options.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Attributes inherited from Configuration

#api_url, #merchant, #secret_key, #uploads_url

Instance Method Summary collapse

Constructor Details

#initialize(config = Configuration, idempotency_key: nil) ⇒ RequestOptions

Returns a new instance of RequestOptions.



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/shift4/request_options.rb', line 9

def initialize(
  config = Configuration,
  idempotency_key: nil
)
  super(
    secret_key: config.secret_key,
    merchant: config.merchant,
    api_url: config.api_url,
    uploads_url: config.uploads_url
  )
  @idempotency_key = idempotency_key
end

Class Attribute Details

.idempotency_keyObject (readonly)

Returns the value of attribute idempotency_key.



6
7
8
# File 'lib/shift4/request_options.rb', line 6

def idempotency_key
  @idempotency_key
end

Instance Attribute Details

#idempotency_keyObject (readonly)

Returns the value of attribute idempotency_key.



22
23
24
# File 'lib/shift4/request_options.rb', line 22

def idempotency_key
  @idempotency_key
end