Class: Anthropic::Models::Beta::BetaBrowserCoordinateTarget

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_browser_coordinate_target.rb,
sig/anthropic/models/beta/beta_browser_coordinate_target.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 ⇒ BetaBrowserCoordinateTarget

Returns a new instance of BetaBrowserCoordinateTarget.

Parameters:

  • x: (Integer)
  • y_: (Integer)
  • type: (:coordinate)


16
# File 'sig/anthropic/models/beta/beta_browser_coordinate_target.rbs', line 16

def initialize: (x: Integer, y_: Integer, ?type: :coordinate) -> void

Instance Attribute Details

#type ⇒ Symbol, :coordinate

Parameters:

  • value (:coordinate)

Returns:

  • (Symbol, :coordinate)


10
# File 'lib/anthropic/models/beta/beta_browser_coordinate_target.rb', line 10

required :type, const: :coordinate

#x ⇒ Integer

Pixels from the left edge of the viewport.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


16
# File 'lib/anthropic/models/beta/beta_browser_coordinate_target.rb', line 16

required :x, Integer

#y_ ⇒ Integer

Pixels from the top edge of the viewport.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


22
# File 'lib/anthropic/models/beta/beta_browser_coordinate_target.rb', line 22

required :y_, Integer, api_name: :y

Instance Method Details

#to_hash ⇒ { type: :coordinate, x: Integer, y_: Integer }

Returns:

  • ({ type: :coordinate, x: Integer, y_: Integer })


18
# File 'sig/anthropic/models/beta/beta_browser_coordinate_target.rbs', line 18

def to_hash: -> { type: :coordinate, x: Integer, y_: Integer }