Class: Inttegro::FileLink::Delivery

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file_link/delivery.rb

Overview

Typed representation of the delivery 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

#content_type ⇒ String? (readonly)

Value of the content_type field in the Inttegro API payload.

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

Returns:

  • (String, nil)


42
43
44
45
46
47
# File 'lib/inttegro/file_link/delivery.rb', line 42

class Delivery < T::Struct
  const :mode, T.nilable(Inttegro::FileLink::DeliveryMode), default: nil
  const :filename, T.nilable(String), default: nil
  const :content_type, T.nilable(String), default: nil
  const :disposition, T.nilable(String), default: nil
end

#disposition ⇒ String? (readonly)

Value of the disposition field in the Inttegro API payload.

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

Returns:

  • (String, nil)


42
43
44
45
46
47
# File 'lib/inttegro/file_link/delivery.rb', line 42

class Delivery < T::Struct
  const :mode, T.nilable(Inttegro::FileLink::DeliveryMode), default: nil
  const :filename, T.nilable(String), default: nil
  const :content_type, T.nilable(String), default: nil
  const :disposition, T.nilable(String), default: nil
end

#filename ⇒ String? (readonly)

Value of the filename field in the Inttegro API payload.

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

Returns:

  • (String, nil)


42
43
44
45
46
47
# File 'lib/inttegro/file_link/delivery.rb', line 42

class Delivery < T::Struct
  const :mode, T.nilable(Inttegro::FileLink::DeliveryMode), default: nil
  const :filename, T.nilable(String), default: nil
  const :content_type, T.nilable(String), default: nil
  const :disposition, T.nilable(String), default: nil
end

#mode ⇒ Inttegro::FileLink::DeliveryMode? (readonly)

Value of the mode field in the Inttegro API payload.

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



42
43
44
45
46
47
# File 'lib/inttegro/file_link/delivery.rb', line 42

class Delivery < T::Struct
  const :mode, T.nilable(Inttegro::FileLink::DeliveryMode), default: nil
  const :filename, T.nilable(String), default: nil
  const :content_type, T.nilable(String), default: nil
  const :disposition, T.nilable(String), default: nil
end