Class: Unit::Application::UploadDocumentRequest
- Inherits:
-
Object
- Object
- Unit::Application::UploadDocumentRequest
- Defined in:
- lib/unit/models/application/upload_document_request.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
readonly
Returns the value of attribute application_id.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#document_id ⇒ Object
readonly
Returns the value of attribute document_id.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#file_type ⇒ Object
readonly
Returns the value of attribute file_type.
-
#is_back_side ⇒ Object
readonly
Returns the value of attribute is_back_side.
Instance Method Summary collapse
-
#initialize(application_id, document_id, file, file_type, is_back_side: false) ⇒ UploadDocumentRequest
constructor
A new instance of UploadDocumentRequest.
Constructor Details
#initialize(application_id, document_id, file, file_type, is_back_side: false) ⇒ UploadDocumentRequest
Returns a new instance of UploadDocumentRequest.
15 16 17 18 19 20 21 |
# File 'lib/unit/models/application/upload_document_request.rb', line 15 def initialize(application_id, document_id, file, file_type, is_back_side: false) @application_id = application_id @document_id = document_id @file = file @file_type = file_type @is_back_side = is_back_side end |
Instance Attribute Details
#application_id ⇒ Object (readonly)
Returns the value of attribute application_id.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def application_id @application_id end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def content_type @content_type end |
#document_id ⇒ Object (readonly)
Returns the value of attribute document_id.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def document_id @document_id end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def file @file end |
#file_type ⇒ Object (readonly)
Returns the value of attribute file_type.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def file_type @file_type end |
#is_back_side ⇒ Object (readonly)
Returns the value of attribute is_back_side.
8 9 10 |
# File 'lib/unit/models/application/upload_document_request.rb', line 8 def is_back_side @is_back_side end |