Sha256: 00aff96fb9add326c99b9af10d42f86a09bc702d08359eda648d7c2cc3375410
Contents?: true
Size: 856 Bytes
Versions: 4
Compression:
Stored size: 856 Bytes
Contents
# encoding: utf-8 module Nimbu module Endpoints class Themes::Snippets < Endpoint def create(*args) arguments(args, :required => [:theme_id]) forced = arguments.params.delete("force") query_params = {} query_params = {force: forced} unless forced.nil? post_request("/themes/#{theme_id}/snippets", arguments.params, params: query_params) end def get(*args) arguments(args, :required => [:theme_id, :snippet_id]) get_request("/themes/#{theme_id}/snippets/#{snippet_id}", arguments.params) end def delete(*args) arguments(args, :required => [:theme_id, :snippet_id]) delete_request("/themes/#{theme_id}/snippets/#{snippet_id}", arguments.params) end alias :remove :delete end # Themes::Snippets end # Endpoints end # Nimbu
Version data entries
4 entries across 4 versions & 1 rubygems