Class: ClaudeAgentSDK::RateLimitInfo

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

Overview

Rate limit info with typed fields

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, resets_at: nil, rate_limit_type: nil, utilization: nil, overage_status: nil, overage_resets_at: nil, overage_disabled_reason: nil, raw: {}) ⇒ RateLimitInfo

Returns a new instance of RateLimitInfo.



550
551
552
553
554
555
556
557
558
559
560
# File 'lib/claude_agent_sdk/types.rb', line 550

def initialize(status:, resets_at: nil, rate_limit_type: nil, utilization: nil,
               overage_status: nil, overage_resets_at: nil, overage_disabled_reason: nil, raw: {})
  @status = status
  @resets_at = resets_at
  @rate_limit_type = rate_limit_type
  @utilization = utilization
  @overage_status = overage_status
  @overage_resets_at = overage_resets_at
  @overage_disabled_reason = overage_disabled_reason
  @raw = raw
end

Instance Attribute Details

#overage_disabled_reasonObject

Returns the value of attribute overage_disabled_reason.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def overage_disabled_reason
  @overage_disabled_reason
end

#overage_resets_atObject

Returns the value of attribute overage_resets_at.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def overage_resets_at
  @overage_resets_at
end

#overage_statusObject

Returns the value of attribute overage_status.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def overage_status
  @overage_status
end

#rate_limit_typeObject

Returns the value of attribute rate_limit_type.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def rate_limit_type
  @rate_limit_type
end

#rawObject

Returns the value of attribute raw.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def raw
  @raw
end

#resets_atObject

Returns the value of attribute resets_at.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def resets_at
  @resets_at
end

#statusObject

Returns the value of attribute status.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def status
  @status
end

#utilizationObject

Returns the value of attribute utilization.



547
548
549
# File 'lib/claude_agent_sdk/types.rb', line 547

def utilization
  @utilization
end