Class: Anthropic::Models::Beta::BetaComputerLeftClickDragInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb,
sig/anthropic/models/beta/beta_computer_left_click_drag_input.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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 ⇒ BetaComputerLeftClickDragInput

Returns a new instance of BetaComputerLeftClickDragInput.

Parameters:

  • coordinate: (::Array[Integer])
  • start_coordinate: (::Array[Integer])
  • text: (String, nil)


20
21
22
23
24
# File 'sig/anthropic/models/beta/beta_computer_left_click_drag_input.rbs', line 20

def initialize: (
  coordinate: ::Array[Integer],
  start_coordinate: ::Array[Integer],
  ?text: String?
) -> void

Instance Attribute Details

#coordinate ⇒ Array<Integer>

(x, y): x pixels from the left edge, y pixels from the top edge.

Parameters:

  • value (::Array[Integer])

Returns:

  • (Array<Integer>)


11
# File 'lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb', line 11

required :coordinate, Anthropic::Internal::Type::ArrayOf[Integer]

#start_coordinate ⇒ Array<Integer>

(x, y): x pixels from the left edge, y pixels from the top edge.

Parameters:

  • value (::Array[Integer])

Returns:

  • (Array<Integer>)


17
# File 'lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb', line 17

required :start_coordinate, Anthropic::Internal::Type::ArrayOf[Integer]

#text ⇒ String?

Optional key combination to hold down during this action (e.g. "ctrl", "shift", "ctrl+shift").

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


24
# File 'lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb', line 24

optional :text, String, nil?: true

Instance Method Details

#to_hash ⇒ { coordinate: ::Array[Integer], start_coordinate: ::Array[Integer], text: String? }

Returns:

  • ({ coordinate: ::Array[Integer], start_coordinate: ::Array[Integer], text: String? })


26
27
28
29
30
# File 'sig/anthropic/models/beta/beta_computer_left_click_drag_input.rbs', line 26

def to_hash: -> {
  coordinate: ::Array[Integer],
  start_coordinate: ::Array[Integer],
  text: String?
}