Class: TestOpenai::DeleteFileResp

Inherits:
Object
  • Object
show all
Defined in:
lib/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeleteFileResp

Returns a new instance of DeleteFileResp.



57
58
59
60
61
# File 'lib/models.rb', line 57

def initialize(**args)
  @object = args.fetch(:object, 'file')
  @id = args.fetch(:id, '')
  @deleted = args.fetch(:deleted, false)
end

Instance Attribute Details

#deletedtrue, false

Returns Whether the data was deleted.

Returns:

  • (true, false)

    Whether the data was deleted.



55
56
57
# File 'lib/models.rb', line 55

def deleted
  @deleted
end

#idString

Returns The id of the data.

Returns:

  • (String)

    The id of the data.



53
54
55
# File 'lib/models.rb', line 53

def id
  @id
end

#objectString

Returns Type of the data. Ex: ‘file’.

Returns:

  • (String)

    Type of the data. Ex: ‘file’.



51
52
53
# File 'lib/models.rb', line 51

def object
  @object
end