lib/ecoportal/api/v2/pages.rb in ecoportal-api-v2-0.8.22 vs lib/ecoportal/api/v2/pages.rb in ecoportal-api-v2-0.8.23

- old
+ new

@@ -47,10 +47,10 @@ end # Requests to update an existing page via api. # @note It won't launch the update unless there are changes # @param doc [Hash, Page] data that at least contains an `id` (internal or external) of the target page. - # @return [Response] an object with the api response. + # @return [Ecoportal::API::Common::Response] an object with the api response. def update(doc) body = get_body(doc) # , level: "page" # Launch only if there are changes raise "Missing page object" unless body && body["page"] id = get_id(doc)