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