Class: LicenseKit::RetryOptions
- Inherits:
-
Object
- Object
- LicenseKit::RetryOptions
- Defined in:
- lib/licensekit/types.rb
Instance Attribute Summary collapse
-
#retries ⇒ Object
readonly
Returns the value of attribute retries.
-
#retryable_methods ⇒ Object
readonly
Returns the value of attribute retryable_methods.
Instance Method Summary collapse
-
#initialize(retries: 0, retryable_methods: ["GET"]) ⇒ RetryOptions
constructor
A new instance of RetryOptions.
Constructor Details
#initialize(retries: 0, retryable_methods: ["GET"]) ⇒ RetryOptions
Returns a new instance of RetryOptions.
5 6 7 8 |
# File 'lib/licensekit/types.rb', line 5 def initialize(retries: 0, retryable_methods: ["GET"]) @retries = retries @retryable_methods = Array(retryable_methods).map(&:to_s).map(&:upcase).freeze end |
Instance Attribute Details
#retries ⇒ Object (readonly)
Returns the value of attribute retries.
3 4 5 |
# File 'lib/licensekit/types.rb', line 3 def retries @retries end |
#retryable_methods ⇒ Object (readonly)
Returns the value of attribute retryable_methods.
3 4 5 |
# File 'lib/licensekit/types.rb', line 3 def retryable_methods @retryable_methods end |