Sha256: 77ceb4c7e62fef9442298a75ed5b7a94485e01a680a17bcb380b3f31db6e6560
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Nimbu module Endpoints class Themes::Assets < Endpoint def create(*args) arguments(args, required: [:theme_id]) forced = arguments.params.delete("force") if !forced.nil? post_request("/themes/#{theme_id}/assets?force=true", arguments.params, with_attachments: true) else post_request("/themes/#{theme_id}/assets", arguments.params, with_attachments: true) end end def delete(*args) arguments(args, required: [:theme_id, :asset_id]) delete_request("/themes/#{theme_id}/assets/#{asset_id}", arguments.params) end alias_method :remove, :delete end # Themes::Layouts end # Endpoints end # Nimbu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nimbu-api-0.5.0 | lib/nimbu-api/endpoints/themes/assets.rb |