Class: Inttegro::FileLink::Access

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (Integer, nil)


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.

Returns:

  • (Boolean, nil)


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.

Returns:

  • (Array<String>, nil)


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.

Returns:

  • (Time, nil)


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.

Returns:

  • (Integer, nil)


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