Sha256: 7f8d674fa70a6d12991b6083f681daf56129d168c01f481401d73c1e1ce0f4cc

Contents?: true

Size: 596 Bytes

Versions: 5

Compression:

Stored size: 596 Bytes

Contents

module RightScale
  module Api
    module InternalConnection
      def connection(*opts)
        @@little_brother_connection ||= RestConnection::Connection.new(*opts)
        settings = @@little_brother_connection.settings
        settings[:common_headers]["X_API_VERSION"] = "0.1"
        settings[:api_href] = settings[:api_url]
        settings[:extension] = ".js"
        @@little_brother_connection
      end
    end

    module Internal
      include RightScale::Api::InternalConnection
    end

    module InternalExtend
      include RightScale::Api::InternalConnection
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rest_connection-0.1.7 lib/rest_connection/rightscale/rightscale_api_internal.rb
rest_connection-0.1.6 lib/rest_connection/rightscale/rightscale_api_internal.rb
rest_connection-0.1.5 lib/rest_connection/rightscale/rightscale_api_internal.rb
rest_connection-0.1.4 lib/rest_connection/rightscale/rightscale_api_internal.rb
rest_connection-0.1.3 lib/rest_connection/rightscale/rightscale_api_internal.rb