Sha256: 62c8d7b9b096335f448f174b736f56f7155bce291180ae85f6b6e593f488130e

Contents?: true

Size: 535 Bytes

Versions: 12

Compression:

Stored size: 535 Bytes

Contents

# encoding: utf-8

module Nimbu
  module Endpoints
    class Themes::Assets < Endpoint

      def create(*args)
        arguments(args, :required => [:theme_id])

        post_request("/themes/#{theme_id}/assets", arguments.params, :with_attachments => true)
      end

      def delete(*args)
        arguments(args, :required => [:theme_id, :asset_id])

        delete_request("/themes/#{theme_id}/assets/#{asset_id}", arguments.params)
      end
      alias :remove :delete


    end # Themes::Layouts
  end # Endpoints
end # Nimbu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nimbu-api-0.4.0 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.3.0 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2.1 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.2.beta lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.1.5 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.1.4 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.1.3 lib/nimbu-api/endpoints/themes/assets.rb
nimbu-api-0.1.1 lib/nimbu-api/endpoints/themes/assets.rb