Class: Anthropic::Models::Beta::BetaBrowserStateChangeTabOpened

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

#initializeBetaBrowserStateChangeTabOpened

Returns a new instance of BetaBrowserStateChangeTabOpened.

Parameters:

  • tab_id: (String)
  • type: (:tab_opened)


14
# File 'sig/anthropic/models/beta/beta_browser_state_change_tab_opened.rbs', line 14

def initialize: (tab_id: String, ?type: :tab_opened) -> void

Instance Attribute Details

#tab_idString

The tab_id of the opened tab, present in tabs.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :tab_id, String

#typeSymbol, :tab_opened

Parameters:

  • value (:tab_opened)

Returns:

  • (Symbol, :tab_opened)


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

required :type, const: :tab_opened

Instance Method Details

#to_hash{ tab_id: String, type: :tab_opened }

Returns:

  • ({ tab_id: String, type: :tab_opened })


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

def to_hash: -> { tab_id: String, type: :tab_opened }