Class: 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.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#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(attributes = {}) ⇒ RateLimitEvent
constructor
A new instance of RateLimitEvent.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ RateLimitEvent
Returns a new instance of RateLimitEvent.
397 398 399 400 |
# File 'lib/claude_agent_sdk/types.rb', line 397 def initialize(attributes = {}) super @rate_limit_info ||= RateLimitInfo.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#rate_limit_info ⇒ Object
Returns the value of attribute rate_limit_info.
395 396 397 |
# File 'lib/claude_agent_sdk/types.rb', line 395 def rate_limit_info @rate_limit_info end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
394 395 396 |
# File 'lib/claude_agent_sdk/types.rb', line 394 def raw_data @raw_data end |
#session_id ⇒ Object
Returns the value of attribute session_id.
394 395 396 |
# File 'lib/claude_agent_sdk/types.rb', line 394 def session_id @session_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
394 395 396 |
# File 'lib/claude_agent_sdk/types.rb', line 394 def uuid @uuid end |
Instance Method Details
#data ⇒ Object
Backward-compatible accessor returning the full raw event payload
407 408 409 |
# File 'lib/claude_agent_sdk/types.rb', line 407 def data @raw_data || {} end |