class Clerk::Resources::SingularResource

Public Class Methods

new(client, resource_path) click to toggle source
# File lib/clerk/resources/singular_resource.rb, line 4
def initialize(client, resource_path)
  @client = client
  @resource_path = resource_path
end

Public Instance Methods

update(changes = {}) click to toggle source
# File lib/clerk/resources/singular_resource.rb, line 9
def update(changes = {})
  @client.request(:patch, @resource_path, body:changes)
end