Class: Anthropic::Models::BrowserScrollInput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::BrowserScrollInput
- Defined in:
- lib/anthropic/models/browser_scroll_input.rb,
sig/anthropic/models/browser_scroll_input.rbs
Instance Attribute Summary collapse
-
#scroll_amount ⇒ Integer?
Scroll-wheel notches (1–10).
- #scroll_direction ⇒ Symbol, Anthropic::Models::BrowserScrollDirection
-
#tab_id ⇒ String?
Tab to act on.
-
#target ⇒ Anthropic::Models::BrowserCoordinateTarget
A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot).
Instance Method Summary collapse
-
#initialize(scroll_direction:, target:, scroll_amount: nil, tab_id: nil) ⇒ BrowserScrollInput
constructor
Scroll at a viewport position.
- #to_hash ⇒ { scroll_direction: Anthropic::Models::browser_scroll_direction, target: Anthropic::BrowserCoordinateTarget, scroll_amount: Integer?, tab_id: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(scroll_direction:, target:, scroll_amount: nil, tab_id: nil) ⇒ BrowserScrollInput
Scroll at a viewport position. target must be a coordinate target.
Some parameter documentations has been truncated, see Anthropic::Models::BrowserScrollInput for more details.
|
|
# File 'lib/anthropic/models/browser_scroll_input.rb', line 30
|
Instance Attribute Details
#scroll_amount ⇒ Integer?
Scroll-wheel notches (1–10). Default 3.
22 |
# File 'lib/anthropic/models/browser_scroll_input.rb', line 22 optional :scroll_amount, Integer, nil?: true |
#scroll_direction ⇒ Symbol, Anthropic::Models::BrowserScrollDirection
9 |
# File 'lib/anthropic/models/browser_scroll_input.rb', line 9 required :scroll_direction, enum: -> { Anthropic::BrowserScrollDirection } |
#tab_id ⇒ String?
Tab to act on. Defaults to the active tab when omitted.
28 |
# File 'lib/anthropic/models/browser_scroll_input.rb', line 28 optional :tab_id, String, nil?: true |
#target ⇒ Anthropic::Models::BrowserCoordinateTarget
A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot).
16 |
# File 'lib/anthropic/models/browser_scroll_input.rb', line 16 required :target, -> { Anthropic::BrowserCoordinateTarget } |
Instance Method Details
#to_hash ⇒ { scroll_direction: Anthropic::Models::browser_scroll_direction, target: Anthropic::BrowserCoordinateTarget, scroll_amount: Integer?, tab_id: String? }
27 28 29 30 31 32 |
# File 'sig/anthropic/models/browser_scroll_input.rbs', line 27
def to_hash: -> {
scroll_direction: Anthropic::Models::browser_scroll_direction,
target: Anthropic::BrowserCoordinateTarget,
scroll_amount: Integer?,
tab_id: String?
}
|