Class: SubmitDocumentRequest

Inherits:
Object
  • Object
show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/request/submit_document_request.rb

Overview

Model object for body of a request to submit a document for approval

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Constructor Details

#initialize(tag = nil) ⇒ SubmitDocumentRequest

Returns a new instance of SubmitDocumentRequest.



10
11
12
13
# File 'lib/mangopay/model/request/submit_document_request.rb', line 10

def initialize(tag = nil)
  self.tag = tag
  @status = MangoModel::DocumentStatus::VALIDATION_ASKED
end

Instance Attribute Details

#tagObject

String

Custom data added with the request



8
9
10
# File 'lib/mangopay/model/request/submit_document_request.rb', line 8

def tag
  @tag
end