Class: ClaudeAgentSDK::RateLimitInfo
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Rate limit info with typed fields
Instance Attribute Summary collapse
-
#overage_disabled_reason ⇒ Object
Returns the value of attribute overage_disabled_reason.
-
#overage_resets_at ⇒ Object
Returns the value of attribute overage_resets_at.
-
#overage_status ⇒ Object
Returns the value of attribute overage_status.
-
#rate_limit_type ⇒ Object
Returns the value of attribute rate_limit_type.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#resets_at ⇒ Object
Returns the value of attribute resets_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#utilization ⇒ Object
Returns the value of attribute utilization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ RateLimitInfo
constructor
A new instance of RateLimitInfo.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ RateLimitInfo
Returns a new instance of RateLimitInfo.
386 387 388 389 |
# File 'lib/claude_agent_sdk/types.rb', line 386 def initialize(attributes = {}) super @raw ||= {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#overage_disabled_reason ⇒ Object
Returns the value of attribute overage_disabled_reason.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def overage_disabled_reason @overage_disabled_reason end |
#overage_resets_at ⇒ Object
Returns the value of attribute overage_resets_at.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def overage_resets_at @overage_resets_at end |
#overage_status ⇒ Object
Returns the value of attribute overage_status.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def overage_status @overage_status end |
#rate_limit_type ⇒ Object
Returns the value of attribute rate_limit_type.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def rate_limit_type @rate_limit_type end |
#raw ⇒ Object
Returns the value of attribute raw.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def raw @raw end |
#resets_at ⇒ Object
Returns the value of attribute resets_at.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def resets_at @resets_at end |
#status ⇒ Object
Returns the value of attribute status.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def status @status end |
#utilization ⇒ Object
Returns the value of attribute utilization.
383 384 385 |
# File 'lib/claude_agent_sdk/types.rb', line 383 def utilization @utilization end |