class Adobe::Aem::Sling::Servlets::Post
Public Class Methods
new(context)
click to toggle source
# File lib/adobe/aem/sling/servlets/post.rb, line 7 def initialize(context) @context = context end
Public Instance Methods
create(path, content)
click to toggle source
# File lib/adobe/aem/sling/servlets/post.rb, line 11 def create(path, content) @context.connector.post(path, { content: content.to_json, contentType: 'json' }) end