Class: Deeprails::Models::FileResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/deeprails/models/file_response.rb

Overview

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

#initialize(file_id: nil, file_name: nil, file_size: nil) ⇒ Object

Parameters:

  • file_id (String) (defaults to: nil)

    A unique file ID.

  • file_name (String) (defaults to: nil)

    Name of the file.

  • file_size (Integer) (defaults to: nil)

    The size of the file in bytes.



# File 'lib/deeprails/models/file_response.rb', line 25


Instance Attribute Details

#file_idString?

A unique file ID.

Returns:

  • (String, nil)


11
# File 'lib/deeprails/models/file_response.rb', line 11

optional :file_id, String

#file_nameString?

Name of the file.

Returns:

  • (String, nil)


17
# File 'lib/deeprails/models/file_response.rb', line 17

optional :file_name, String

#file_sizeInteger?

The size of the file in bytes.

Returns:

  • (Integer, nil)


23
# File 'lib/deeprails/models/file_response.rb', line 23

optional :file_size, Integer