Class: DocuSign::RecipientStatus
- Inherits:
-
DocuSignModel
- Object
- DocuSignModel
- DocuSign::RecipientStatus
- Defined in:
- lib/docu_sign/recipient_status.rb
Constant Summary collapse
- ATTRIBUTES =
[:type, :email, :user_name, :routing_order, :sent, :delivered, :signed, :declined, :decline_reason, :status, :recipient_ip_address, :client_user_id, :custom_field, :auto_navigation, :id_check_information, :recipient_authentication_status, :tab_statuses, :recipient_attachment, :account_status, :esign_agreement_information, :form_data, :recipient_id]
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ RecipientStatus
constructor
A new instance of RecipientStatus.
- #tab_statuses=(status_attributes) ⇒ Object
Methods inherited from DocuSignModel
Constructor Details
#initialize(attributes = {}) ⇒ RecipientStatus
Returns a new instance of RecipientStatus.
11 12 13 14 15 |
# File 'lib/docu_sign/recipient_status.rb', line 11 def initialize(attributes = {}) ATTRIBUTES.each do |attr| self.send("#{attr}=", attributes[attr]) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DocuSign::DocuSignModel
Instance Method Details
#tab_statuses=(status_attributes) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/docu_sign/recipient_status.rb', line 17 def tab_statuses=(status_attributes) if status_attributes && status_attributes[:tab_status].is_a?(Hash) @tab_statuses = [DocuSign::TabStatus.new(status_attributes[:tab_status])] elsif status_attributes && status_attributes[:tab_status].is_a?(Array) @tab_statuses = status_attributes[:tab_status].map{|attributes| DocuSign::TabStatus.new(attributes)} end end |