Sha256: 6c5fdc2ae1f9d8184d15a0794a3e01ebd73f0e7b79320d971329590fb999f925

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8

module Nimbu
  module Endpoints
    class Themes < Endpoint

      def list(*args)
        arguments(args)

        response = get_request("/themes", arguments.params)
        return response unless block_given?
        response.each { |el| yield el }
      end
      alias :all :list

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

        get_request("/themes/#{theme_id}", arguments.params)
      end
      alias :find :get


    end # Themes
  end # Endpoints
end # Nimbu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nimbu-api-0.1 lib/nimbu-api/endpoints/themes.rb