Class: WorkOS::RateLimitExceededErrorBodyWithRetryAfter
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::RateLimitExceededErrorBodyWithRetryAfter
- Defined in:
- lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, message: :message, retry_after: :retry_after }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#retry_after ⇒ Object
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(json) ⇒ RateLimitExceededErrorBodyWithRetryAfter
constructor
A new instance of RateLimitExceededErrorBodyWithRetryAfter.
Constructor Details
#initialize(json) ⇒ RateLimitExceededErrorBodyWithRetryAfter
Returns a new instance of RateLimitExceededErrorBodyWithRetryAfter.
18 19 20 21 22 23 |
# File 'lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb', line 18 def initialize(json) hash = self.class.normalize(json) @code = hash[:code] @message = hash[:message] @retry_after = hash[:retry_after] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
13 14 15 |
# File 'lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb', line 13 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
13 14 15 |
# File 'lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb', line 13 def @message end |
#retry_after ⇒ Object
Returns the value of attribute retry_after.
13 14 15 |
# File 'lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb', line 13 def retry_after @retry_after end |