Sha256: 62932b6dc53283e8fe3608a080e1308944b092e625c46a43783ca11e6ad287a4

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

require "nimbu-api/version"

require 'openssl'
require 'excon'
require 'faraday'
require 'multi_json'

require "nimbu-api/utils/all"
require "nimbu-api/configuration"
require "nimbu-api/connection"
require 'nimbu-api/pagination'
require 'nimbu-api/response'
require 'nimbu-api/request'
require 'nimbu-api/authentication'
require 'nimbu-api/endpoint'
require 'nimbu-api/client'

require 'nimbu-api/endpoints/authorizations'
require 'nimbu-api/endpoints/login'
require 'nimbu-api/endpoints/simulator'
require 'nimbu-api/endpoints/sites'
require 'nimbu-api/endpoints/themes'
require 'nimbu-api/endpoints/themes/layouts'
require 'nimbu-api/endpoints/themes/templates'
require 'nimbu-api/endpoints/themes/snippets'
require 'nimbu-api/endpoints/themes/assets'
require 'nimbu-api/endpoints/channels'
require 'nimbu-api/endpoints/channels/entries'
require 'nimbu-api/endpoints/videos'

module Nimbu
  extend Configuration

  class << self
    def new(options = {}, &block)
      Nimbu::Client.new(options, &block)
    end

    # Delegate to Nimbu::Client
    #
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end

  end
end # Nimbu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nimbu-api-0.1.5 lib/nimbu-api.rb
nimbu-api-0.1.4 lib/nimbu-api.rb
nimbu-api-0.1.3 lib/nimbu-api.rb
nimbu-api-0.1.1 lib/nimbu-api.rb