Class: OpenAI::Models::Beta::BetaComputerAction::DoubleClick

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

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ DoubleClick

Returns a new instance of DoubleClick.

Parameters:

  • keys —

    The keys being held while double-clicking.

  • x —

    The x-coordinate where the double click occurred.

  • y_ —

    The y-coordinate where the double click occurred.

  • type —

    Specifies the event type. For a double click action, this property is always set to double_click.

  • keys: (::Array[String], nil)
  • x: (Integer)
  • y_: (Integer)
  • type: (:double_click)


119
120
121
122
123
124
# File 'sig/openai/models/beta/beta_computer_action.rbs', line 119

def initialize: (
  keys: ::Array[String]?,
  x: Integer,
  y_: Integer,
  ?type: :double_click
) -> void

Instance Attribute Details

#keys ⇒ ::Array[String]?

The keys being held while double-clicking.

Returns:

  • (::Array[String], nil)


113
# File 'lib/openai/models/beta/beta_computer_action.rb', line 113

required :keys, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#type ⇒ :double_click

Specifies the event type. For a double click action, this property is always set to double_click.

Returns:

  • (:double_click)


120
# File 'lib/openai/models/beta/beta_computer_action.rb', line 120

required :type, const: :double_click

#x ⇒ Integer

The x-coordinate where the double click occurred.

Returns:

  • (Integer)


126
# File 'lib/openai/models/beta/beta_computer_action.rb', line 126

required :x, Integer

#y_ ⇒ Integer

The y-coordinate where the double click occurred.

Returns:

  • (Integer)


132
# File 'lib/openai/models/beta/beta_computer_action.rb', line 132

required :y_, Integer, api_name: :y

Instance Method Details

#to_hash ⇒ { keys: ::Array[String]?, ?type: :double_click, x: Integer, y_: Integer }

Returns:

  • ({ keys: ::Array[String]?, ?type: :double_click, x: Integer, y_: Integer })


126
127
128
129
130
131
# File 'sig/openai/models/beta/beta_computer_action.rbs', line 126

def to_hash: -> {
  keys: ::Array[String]?,
  ?type: :double_click,
  x: Integer,
  y_: Integer
}