Class: OpenAI::Models::BetaTool::Beta::BetaTool::ImageGeneration::InputImageMask

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_tool.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

#initializeInputImageMask

Returns a new instance of InputImageMask.

Parameters:

  • file_id: (String)
  • image_url: (String)


542
# File 'sig/openai/models/beta/beta_tool.rbs', line 542

def initialize: (?file_id: String, ?image_url: String) -> void

Instance Attribute Details

#file_idString? (readonly)

Returns the value of attribute file_id.

Returns:

  • (String, nil)


534
535
536
# File 'sig/openai/models/beta/beta_tool.rbs', line 534

def file_id
  @file_id
end

#image_urlString? (readonly)

Returns the value of attribute image_url.

Returns:

  • (String, nil)


538
539
540
# File 'sig/openai/models/beta/beta_tool.rbs', line 538

def image_url
  @image_url
end

Instance Method Details

#file_id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


536
# File 'sig/openai/models/beta/beta_tool.rbs', line 536

def file_id=: (String) -> String

#image_url=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


540
# File 'sig/openai/models/beta/beta_tool.rbs', line 540

def image_url=: (String) -> String

#to_hash{ file_id: String, image_url: String }

Returns:

  • ({ file_id: String, image_url: String })


544
# File 'sig/openai/models/beta/beta_tool.rbs', line 544

def to_hash: -> { file_id: String, image_url: String }