lib/nimbu-api/endpoints/themes.rb in nimbu-api-0.1 vs lib/nimbu-api/endpoints/themes.rb in nimbu-api-0.1.1
- old
+ new
@@ -2,9 +2,25 @@
module Nimbu
module Endpoints
class Themes < Endpoint
+ def layouts(options={}, &block)
+ Nimbu::Builder.new('Themes::Layouts', current_options.merge(options), &block)
+ end
+
+ def templates(options={}, &block)
+ Nimbu::Builder.new('Themes::Templates', current_options.merge(options), &block)
+ end
+
+ def snippets(options={}, &block)
+ Nimbu::Builder.new('Themes::Snippets', current_options.merge(options), &block)
+ end
+
+ def assets(options={}, &block)
+ Nimbu::Builder.new('Themes::Assets', current_options.merge(options), &block)
+ end
+
def list(*args)
arguments(args)
response = get_request("/themes", arguments.params)
return response unless block_given?