module Bespokify::Client::Draft

Public Instance Methods

create_draft(options = {}) click to toggle source
# File lib/bespokify/client/draft.rb, line 12
def create_draft(options = {})
  post('/drafts', options)
end
delete_draft(draft_id) click to toggle source
# File lib/bespokify/client/draft.rb, line 20
def delete_draft(draft_id)
  delete("/drafts/#{draft_id}")
end
draft(draft_id) click to toggle source
# File lib/bespokify/client/draft.rb, line 8
def draft(draft_id)
  get("/drafts/#{draft_id}")
end
drafts(options = {}) click to toggle source
# File lib/bespokify/client/draft.rb, line 4
def drafts(options = {})
  get('/drafts', options)
end
update_draft(draft_id, options = {}) click to toggle source
# File lib/bespokify/client/draft.rb, line 16
def update_draft(draft_id, options = {})
  patch("/drafts/#{draft_id}", options)
end