Class: ClaudeAgentSDK::RateLimitEvent
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::RateLimitEvent
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Rate limit event emitted when rate limit info changes
Instance Attribute Summary collapse
-
#rate_limit_info ⇒ Object
Returns the value of attribute rate_limit_info.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#data ⇒ Object
Backward-compatible accessor returning the full raw event payload.
-
#initialize(rate_limit_info:, uuid:, session_id:, raw_data: nil) ⇒ RateLimitEvent
constructor
A new instance of RateLimitEvent.
Constructor Details
#initialize(rate_limit_info:, uuid:, session_id:, raw_data: nil) ⇒ RateLimitEvent
Returns a new instance of RateLimitEvent.
567 568 569 570 571 572 |
# File 'lib/claude_agent_sdk/types.rb', line 567 def initialize(rate_limit_info:, uuid:, session_id:, raw_data: nil) @rate_limit_info = rate_limit_info @uuid = uuid @session_id = session_id @raw_data = raw_data end |
Instance Attribute Details
#rate_limit_info ⇒ Object
Returns the value of attribute rate_limit_info.
565 566 567 |
# File 'lib/claude_agent_sdk/types.rb', line 565 def rate_limit_info @rate_limit_info end |
#session_id ⇒ Object
Returns the value of attribute session_id.
565 566 567 |
# File 'lib/claude_agent_sdk/types.rb', line 565 def session_id @session_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
565 566 567 |
# File 'lib/claude_agent_sdk/types.rb', line 565 def uuid @uuid end |
Instance Method Details
#data ⇒ Object
Backward-compatible accessor returning the full raw event payload
575 576 577 |
# File 'lib/claude_agent_sdk/types.rb', line 575 def data @raw_data || {} end |