Class: Unit::CheckPayment::GetImageRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/models/check_payment/get_image_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment_id, is_front_side: true) ⇒ GetImageRequest

Returns a new instance of GetImageRequest.

Parameters:

  • payment_id (String)
  • is_front_side (Boolean) (defaults to: true)
    • optional



13
14
15
16
# File 'lib/unit/models/check_payment/get_image_request.rb', line 13

def initialize(payment_id, is_front_side: true)
  @payment_id = payment_id
  @is_front_side = is_front_side
end

Instance Attribute Details

#is_front_sideObject (readonly)

Returns the value of attribute is_front_side.



9
10
11
# File 'lib/unit/models/check_payment/get_image_request.rb', line 9

def is_front_side
  @is_front_side
end

#payment_idObject (readonly)

Returns the value of attribute payment_id.



9
10
11
# File 'lib/unit/models/check_payment/get_image_request.rb', line 9

def payment_id
  @payment_id
end