Class: ClaudeAgentSDK::RateLimitInfo

Inherits:
Type
  • 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

Methods inherited from Type

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

Constructor Details

#initialize(attributes = {}) ⇒ RateLimitInfo

Returns a new instance of RateLimitInfo.



413
414
415
416
# File 'lib/claude_agent_sdk/types.rb', line 413

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_reasonObject

Returns the value of attribute overage_disabled_reason.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def overage_disabled_reason
  @overage_disabled_reason
end

#overage_resets_atObject

Returns the value of attribute overage_resets_at.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def overage_resets_at
  @overage_resets_at
end

#overage_statusObject

Returns the value of attribute overage_status.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def overage_status
  @overage_status
end

#rate_limit_typeObject

Returns the value of attribute rate_limit_type.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def rate_limit_type
  @rate_limit_type
end

#rawObject

Returns the value of attribute raw.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def raw
  @raw
end

#resets_atObject

Returns the value of attribute resets_at.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def resets_at
  @resets_at
end

#statusObject

Returns the value of attribute status.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def status
  @status
end

#utilizationObject

Returns the value of attribute utilization.



410
411
412
# File 'lib/claude_agent_sdk/types.rb', line 410

def utilization
  @utilization
end