Class: WorkOS::RateLimitExceededErrorBodyWithRetryAfter

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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
  @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