Class: Anthropic::Models::Beta::BetaCitationPageLocationParam

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

#initializeObject



29
# File 'sig/anthropic/models/beta/beta_citation_page_location_param.rbs', line 29

def initialize: (

Instance Attribute Details

#cited_textString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :cited_text, String

#document_indexInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


15
# File 'lib/anthropic/models/beta/beta_citation_page_location_param.rb', line 15

required :document_index, Integer

#document_titleString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


20
# File 'lib/anthropic/models/beta/beta_citation_page_location_param.rb', line 20

required :document_title, String, nil?: true

#end_page_numberInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


25
# File 'lib/anthropic/models/beta/beta_citation_page_location_param.rb', line 25

required :end_page_number, Integer

#start_page_numberInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


30
# File 'lib/anthropic/models/beta/beta_citation_page_location_param.rb', line 30

required :start_page_number, Integer

#typeSymbol, :page_location

Parameters:

  • value (:page_location)

Returns:

  • (Symbol, :page_location)


35
# File 'lib/anthropic/models/beta/beta_citation_page_location_param.rb', line 35

required :type, const: :page_location

Instance Method Details

#to_hash{

Returns:

  • ({)


38
# File 'sig/anthropic/models/beta/beta_citation_page_location_param.rbs', line 38

def to_hash: -> {