Class: ClaudeAgentSDK::RateLimitEvent

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Rate limit event emitted when rate limit info changes

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ RateLimitEvent

Returns a new instance of RateLimitEvent.



424
425
426
427
# File 'lib/claude_agent_sdk/types.rb', line 424

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_infoObject

Returns the value of attribute rate_limit_info.



422
423
424
# File 'lib/claude_agent_sdk/types.rb', line 422

def rate_limit_info
  @rate_limit_info
end

#raw_dataObject

Returns the value of attribute raw_data.



421
422
423
# File 'lib/claude_agent_sdk/types.rb', line 421

def raw_data
  @raw_data
end

#session_idObject

Returns the value of attribute session_id.



421
422
423
# File 'lib/claude_agent_sdk/types.rb', line 421

def session_id
  @session_id
end

#uuidObject

Returns the value of attribute uuid.



421
422
423
# File 'lib/claude_agent_sdk/types.rb', line 421

def uuid
  @uuid
end

Instance Method Details

#dataObject

Backward-compatible accessor returning the full raw event payload



434
435
436
# File 'lib/claude_agent_sdk/types.rb', line 434

def data
  @raw_data || {}
end