lib/hello_sign/client.rb in hellosign-ruby-sdk-3.0.9 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.0.10
- old
+ new
@@ -150,11 +150,11 @@
if response['content-type'] == 'application/pdf'
response.body
elsif response.body.strip.empty?
{}
else
- MultiJson.load response.body
+ MultiJson.load response.body.strip
end
end
def error_message(response)
"Server responded with code #{response.status}\n" \
@@ -192,9 +192,17 @@
prepare opts, :ccs
end
def prepare_templates(opts)
prepare opts, :template_ids
+ end
+
+ def prepare_cc_roles(opts)
+ prepare opts, :merge_fields
+ end
+
+ def prepare_signer_roles(opts)
+ prepare opts, :signer_roles
end
def prepare(opts, key)
return unless opts[key]
opts[key].each_with_index do |value, index|