Class: Inttegro::FileLink::Access
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::FileLink::Access
- Defined in:
- lib/inttegro/file_link/access.rb
Overview
Typed representation of the access 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
-
#access_count ⇒ Integer?
readonly
Value of the
access_countfield in the Inttegro API payload. -
#allow_download ⇒ Boolean?
readonly
Value of the
allow_downloadfield in the Inttegro API payload. -
#allowed_origins ⇒ Array<String>?
readonly
Value of the
allowed_originsfield in the Inttegro API payload. -
#last_accessed_at ⇒ Time?
readonly
Value of the
last_accessed_atfield in the Inttegro API payload. -
#max_accesses ⇒ Integer?
readonly
Value of the
max_accessesfield in the Inttegro API payload.
Instance Attribute Details
#access_count ⇒ Integer? (readonly)
Value of the access_count field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: access_count.
47 48 49 50 51 52 53 |
# File 'lib/inttegro/file_link/access.rb', line 47 class Access < T::Struct const :max_accesses, T.nilable(Integer), default: nil const :access_count, T.nilable(Integer), default: nil const :last_accessed_at, T.nilable(Time), default: nil const :allow_download, T.nilable(T::Boolean), default: nil const :allowed_origins, T.nilable(T::Array[String]), default: nil end |
#allow_download ⇒ Boolean? (readonly)
Value of the allow_download field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: allow_download.
47 48 49 50 51 52 53 |
# File 'lib/inttegro/file_link/access.rb', line 47 class Access < T::Struct const :max_accesses, T.nilable(Integer), default: nil const :access_count, T.nilable(Integer), default: nil const :last_accessed_at, T.nilable(Time), default: nil const :allow_download, T.nilable(T::Boolean), default: nil const :allowed_origins, T.nilable(T::Array[String]), default: nil end |
#allowed_origins ⇒ Array<String>? (readonly)
Value of the allowed_origins field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: allowed_origins.
47 48 49 50 51 52 53 |
# File 'lib/inttegro/file_link/access.rb', line 47 class Access < T::Struct const :max_accesses, T.nilable(Integer), default: nil const :access_count, T.nilable(Integer), default: nil const :last_accessed_at, T.nilable(Time), default: nil const :allow_download, T.nilable(T::Boolean), default: nil const :allowed_origins, T.nilable(T::Array[String]), default: nil end |
#last_accessed_at ⇒ Time? (readonly)
Value of the last_accessed_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: last_accessed_at.
47 48 49 50 51 52 53 |
# File 'lib/inttegro/file_link/access.rb', line 47 class Access < T::Struct const :max_accesses, T.nilable(Integer), default: nil const :access_count, T.nilable(Integer), default: nil const :last_accessed_at, T.nilable(Time), default: nil const :allow_download, T.nilable(T::Boolean), default: nil const :allowed_origins, T.nilable(T::Array[String]), default: nil end |
#max_accesses ⇒ Integer? (readonly)
Value of the max_accesses field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: max_accesses.
47 48 49 50 51 52 53 |
# File 'lib/inttegro/file_link/access.rb', line 47 class Access < T::Struct const :max_accesses, T.nilable(Integer), default: nil const :access_count, T.nilable(Integer), default: nil const :last_accessed_at, T.nilable(Time), default: nil const :allow_download, T.nilable(T::Boolean), default: nil const :allowed_origins, T.nilable(T::Array[String]), default: nil end |