Class: Inttegro::UploadRequest::Review

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/upload_request/review.rb

Overview

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

#created_at ⇒ Time (readonly)

Value of the created_at field in the Inttegro API payload.

Required in the API payload. Wire name: created_at.

Returns:

  • (Time)


62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#decision ⇒ Inttegro::Shared::UploadReviewDecision (readonly)

Value of the decision field in the Inttegro API payload.

Required in the API payload. Wire name: decision.



62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#file_id ⇒ String? (readonly)

Value of the file_id field in the Inttegro API payload.

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

Returns:

  • (String, nil)


62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#public_message ⇒ String? (readonly)

Value of the public_message field in the Inttegro API payload.

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

Returns:

  • (String, nil)


62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#reasons ⇒ Array<Inttegro::UploadRequest::ReviewReason>? (readonly)

Value of the reasons field in the Inttegro API payload.

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

Returns:



62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#reviewed_at ⇒ Time (readonly)

Value of the reviewed_at field in the Inttegro API payload.

Required in the API payload. Wire name: reviewed_at.

Returns:

  • (Time)


62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end

#type ⇒ Inttegro::Shared::UploadReviewType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



62
63
64
65
66
67
68
69
70
# File 'lib/inttegro/upload_request/review.rb', line 62

class Review < T::Struct
  const :created_at, Time
  const :decision, Inttegro::Shared::UploadReviewDecision
  const :file_id, T.nilable(String), default: nil
  const :public_message, T.nilable(String), default: nil
  const :reasons, T.nilable(T::Array[Inttegro::UploadRequest::ReviewReason]), default: nil
  const :reviewed_at, Time
  const :type, Inttegro::Shared::UploadReviewType
end