Class: Inttegro::File::Source

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file/source.rb

Overview

Typed representation of the source object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#service ⇒ String? (readonly)

Value of the service field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: service.

Returns:

  • (String, nil)


36
37
38
39
40
# File 'lib/inttegro/file/source.rb', line 36

class Source < T::Struct
  const :type, T.nilable(Inttegro::File::SourceType), default: nil
  const :service, T.nilable(String), default: nil
  const :upload_request_id, T.nilable(String), default: nil
end

#type ⇒ Inttegro::File::SourceType? (readonly)

Value of the type field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: type.

Returns:



36
37
38
39
40
# File 'lib/inttegro/file/source.rb', line 36

class Source < T::Struct
  const :type, T.nilable(Inttegro::File::SourceType), default: nil
  const :service, T.nilable(String), default: nil
  const :upload_request_id, T.nilable(String), default: nil
end

#upload_request_id ⇒ String? (readonly)

Value of the upload_request_id field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: upload_request_id.

Returns:

  • (String, nil)


36
37
38
39
40
# File 'lib/inttegro/file/source.rb', line 36

class Source < T::Struct
  const :type, T.nilable(Inttegro::File::SourceType), default: nil
  const :service, T.nilable(String), default: nil
  const :upload_request_id, T.nilable(String), default: nil
end