Class: Inttegro::File::Delivery
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::Delivery
- Defined in:
- lib/inttegro/file/delivery.rb
Overview
Purpose-authorized public delivery metadata for browser-rendered assets. Callers should store file IDs as canonical references and treat these URLs as render URLs.
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
-
#cache_control ⇒ String?
readonly
Value of the
cache_controlfield in the Inttegro API payload. -
#content_type ⇒ String?
readonly
Value of the
content_typefield in the Inttegro API payload. -
#public_url ⇒ String?
readonly
Unsigned CDN URL for public-safe assets such as product images.
Instance Attribute Details
#cache_control ⇒ String? (readonly)
Value of the cache_control field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: cache_control.
36 37 38 39 40 |
# File 'lib/inttegro/file/delivery.rb', line 36 class Delivery < T::Struct const :public_url, T.nilable(String), default: nil const :cache_control, T.nilable(String), default: nil const :content_type, T.nilable(String), default: nil end |
#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.
36 37 38 39 40 |
# File 'lib/inttegro/file/delivery.rb', line 36 class Delivery < T::Struct const :public_url, T.nilable(String), default: nil const :cache_control, T.nilable(String), default: nil const :content_type, T.nilable(String), default: nil end |
#public_url ⇒ String? (readonly)
Unsigned CDN URL for public-safe assets such as product images.
Optional in the API payload; omitted values default to nil. Wire name: public_url.
36 37 38 39 40 |
# File 'lib/inttegro/file/delivery.rb', line 36 class Delivery < T::Struct const :public_url, T.nilable(String), default: nil const :cache_control, T.nilable(String), default: nil const :content_type, T.nilable(String), default: nil end |