Class: Unit::CheckDeposit::UploadImageRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/models/check_deposit/upload_image_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deposit_id, file_content, is_front_side: true) ⇒ UploadImageRequest

Returns a new instance of UploadImageRequest.

Parameters:

  • deposit_id (String)
  • file_content (String)
  • is_front_side (Boolean) (defaults to: true)
    • optional



15
16
17
18
19
# File 'lib/unit/models/check_deposit/upload_image_request.rb', line 15

def initialize(deposit_id, file_content, is_front_side: true)
  @deposit_id = deposit_id
  @file_content = file_content
  @is_front_side = is_front_side
end

Instance Attribute Details

#deposit_idObject (readonly)

Returns the value of attribute deposit_id.



10
11
12
# File 'lib/unit/models/check_deposit/upload_image_request.rb', line 10

def deposit_id
  @deposit_id
end

#file_contentObject (readonly)

Returns the value of attribute file_content.



10
11
12
# File 'lib/unit/models/check_deposit/upload_image_request.rb', line 10

def file_content
  @file_content
end

#is_front_sideObject (readonly)

Returns the value of attribute is_front_side.



10
11
12
# File 'lib/unit/models/check_deposit/upload_image_request.rb', line 10

def is_front_side
  @is_front_side
end