Sha256: d57c064097317feb9784f7a99384086b64bafdfdc51fac683b5f59ae5196ed1d

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

# encoding: utf-8

require 'nimbu-api/builder'

module Nimbu
  class Client < Endpoint

    def oauth(options={}, &block)
      Nimbu::Builder.new('Authorizations', current_options.merge(options), &block)
    end
    alias :authorizations :oauth

    def sites(options={}, &block)
      Nimbu::Builder.new('Sites', current_options.merge(options), &block)
    end

    def themes(options={}, &block)
      Nimbu::Builder.new('Themes', current_options.merge(options), &block)
    end

    def channels(options={}, &block)
      Nimbu::Builder.new('Channels', current_options.merge(options), &block)
    end

    def videos(options={}, &block)
      Nimbu::Builder.new('Videos', current_options.merge(options), &block)
    end

    def simulator(options={}, &block)
      Nimbu::Builder.new('Simulator', current_options.merge(options), &block)
    end

    def products(options={}, &block)
      Nimbu::Builder.new('Products', current_options.merge(options), &block)
    end

    def customers(options={}, &block)
      Nimbu::Builder.new('Customers', current_options.merge(options), &block)
    end

    def collections(options={}, &block)
      Nimbu::Builder.new('Collections', current_options.merge(options), &block)
    end

    def authenticate(options={}, &block)
      Nimbu::Builder.new('Login', current_options.merge(options), &block).response
    end

  end # Client
end # Nimbu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nimbu-api-0.3.0 lib/nimbu-api/client.rb
nimbu-api-0.2.1 lib/nimbu-api/client.rb
nimbu-api-0.2 lib/nimbu-api/client.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/client.rb