Sha256: 49241a68d41818cd2e0e989151ba2dea40bce99c33ab0b28c64379a0303fc630
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 Bytes
Contents
require 'net/http' require 'net/https' require 'cgi' require 'rubygems' require 'xmlsimple' module Solusvm class << self attr_accessor :api_endpoint, :api_id, :api_key, :api_options # Specifies the login and url for making requests # # example: # # Solusvm.config('id', 'key', :url => 'http://www.example.com/api', :logger => RAILS_LOGGER, :logger_method => :log_info) # # Options: # * <tt>:logger</tt> - Log object used for logging API responses # * <tt>:logger_method</tt> - The method that performs the logging on the Log object def config(api_id, api_key, options={}) @api_id = api_id @api_key = api_key @api_endpoint = URI.parse(options.delete(:url)) @api_options = options end end end require 'solusvm/exceptions' require 'solusvm/hash' require 'solusvm/base' require 'solusvm/general' require 'solusvm/client' require 'solusvm/server' require 'solusvm/reseller' require 'solusvm/node'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solusvm-1.0.0.beta3 | lib/solusvm.rb |
solusvm-1.0.0.beta2 | lib/solusvm.rb |
solusvm-1.0.0.beta | lib/solusvm.rb |