lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.7.0 vs lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.8.0
- old
+ new
@@ -50,11 +50,11 @@
# Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests.
# @return [Boolean]
attr_accessor :is_locked
# The metadata attached to the template.
- # @return [Object]
+ # @return [Hash<String, Object>]
attr_accessor :metadata
# An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template.
# @return [Array<TemplateResponseSignerRole>]
attr_accessor :signer_roles
@@ -119,11 +119,11 @@
:'updated_at' => :'Integer',
:'is_embedded' => :'Boolean',
:'is_creator' => :'Boolean',
:'can_edit' => :'Boolean',
:'is_locked' => :'Boolean',
- :'metadata' => :'Object',
+ :'metadata' => :'Hash<String, Object>',
:'signer_roles' => :'Array<TemplateResponseSignerRole>',
:'cc_roles' => :'Array<TemplateResponseCCRole>',
:'documents' => :'Array<TemplateResponseDocument>',
:'custom_fields' => :'Array<TemplateResponseDocumentCustomFieldBase>',
:'named_form_fields' => :'Array<TemplateResponseDocumentFormFieldBase>',
@@ -212,10 +212,12 @@
if attributes.key?(:'is_locked')
self.is_locked = attributes[:'is_locked']
end
if attributes.key?(:'metadata')
- self.metadata = attributes[:'metadata']
+ if (value = attributes[:'metadata']).is_a?(Hash)
+ self.metadata = value
+ end
end
if attributes.key?(:'signer_roles')
if (value = attributes[:'signer_roles']).is_a?(Array)
self.signer_roles = value