lib/groupdocs/document/annotation/reply.rb in groupdocs-1.2.11 vs lib/groupdocs/document/annotation/reply.rb in groupdocs-1.3.0
- old
+ new
@@ -30,11 +30,11 @@
end
api.add_params(options)
json = api.execute!
json[:replies].map do |reply|
- reply.merge!(annotation: annotation)
+ reply.merge!(:annotation => annotation)
Document::Annotation::Reply.new(reply)
end
end
# @attr [GroupDocs::Document::Annotation] annotation
@@ -97,10 +97,10 @@
def create!(access = {})
json = Api::Request.new do |request|
request[:access] = access
request[:method] = :POST
request[:path] = "/ant/{{client_id}}/annotations/#{get_annotation_guid}/replies"
- request[:request_body] = { text: text }
+ request[:request_body] = { :text => text }
end.execute!
self.guid = json[:replyGuid]
self.annotation_guid = json[:annotationGuid]
end