Class: Anthropic::Models::Beta::BetaBrowserCoordinateTarget
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaBrowserCoordinateTarget
- Defined in:
- lib/anthropic/models/beta/beta_browser_coordinate_target.rb,
sig/anthropic/models/beta/beta_browser_coordinate_target.rbs
Instance Attribute Summary collapse
- #type ⇒ Symbol, :coordinate
-
#x ⇒ Integer
Pixels from the left edge of the viewport.
-
#y_ ⇒ Integer
Pixels from the top edge of the viewport.
Instance Method Summary collapse
-
#initialize ⇒ BetaBrowserCoordinateTarget
constructor
A new instance of BetaBrowserCoordinateTarget.
- #to_hash ⇒ { type: :coordinate, x: Integer, y_: Integer }
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.
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
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.
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.
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 }
18 |
# File 'sig/anthropic/models/beta/beta_browser_coordinate_target.rbs', line 18
def to_hash: -> { type: :coordinate, x: Integer, y_: Integer }
|