Sha256: 7725a11a7b8794c07b0c6161ae7299275192d3aef450517afbc433243b8e57e5

Contents?: true

Size: 689 Bytes

Versions: 3

Compression:

Stored size: 689 Bytes

Contents

require 'cloud_connect/configuration'
require 'cloud_connect/client'
require 'cloud_connect/notification'
require 'cloud_connect/error'

module CloudConnect
  extend Configuration
  class << self
    # Alias for CloudConnect::Client.new
    #
    # @return [CloudConnect::Client]
    def new(options={})
      CloudConnect::Client.new(options)
    end

    # Delegate to CloudConnect::Client.new
    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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloud_connect-3.2.0 lib/cloud_connect.rb
cloud_connect-3.1.0 lib/cloud_connect.rb
cloud_connect-3.0.3 lib/cloud_connect.rb