Sha256: df1cc3f42d50693ba8faece743cc334915bd057b7da8fe630067e58524a50343
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 Bytes
Contents
module Bubbles class RestEnvironment attr_accessor :scheme, :host, :port, :api_key ## # Construct a new instance of +RestEnvironment+. # # @param [String] scheme The scheme to use for communicating with the host. Currently, http and https are supported. # @param [String] host The host to communicate with. # @param [Integer] port The port on which the communication channel should operate. # @param [String] api_key (Optional) The API key to use to identify your client with the API. Defaults to +nil+. # def initialize(scheme='https', host='api.foamfactory.com', port=443, api_key=nil) @scheme = scheme @port = port if @scheme == 'http' && @port == 443 @port = 80 end @host = host @api_key = api_key end end end
Version data entries
4 entries across 4 versions & 1 rubygems