class Nimbu::Endpoints::Themes

Public Instance Methods

all(*args)
Alias for: list
assets(options={}, &block) click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 19
def assets(options={}, &block)
  Nimbu::Builder.new('Themes::Assets', current_options.merge(options), &block)
end
find(*args)
Alias for: get
get(*args) click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 32
def get(*args)
  arguments(args, :required => [:theme_id])

  get_request("/themes/#{theme_id}", arguments.params)
end
Also aliased as: find
layouts(options={}, &block) click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 7
def layouts(options={}, &block)
  Nimbu::Builder.new('Themes::Layouts', current_options.merge(options), &block)
end
list(*args) { |el| ... } click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 23
def list(*args)
  arguments(args)

  response = get_request("/themes", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end
Also aliased as: all
snippets(options={}, &block) click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 15
def snippets(options={}, &block)
  Nimbu::Builder.new('Themes::Snippets', current_options.merge(options), &block)
end
templates(options={}, &block) click to toggle source
# File lib/nimbu-api/endpoints/themes.rb, line 11
def templates(options={}, &block)
  Nimbu::Builder.new('Themes::Templates', current_options.merge(options), &block)
end