Sha256: 2fe98a8ef3820a9a51046d02cfdbf44171ecceaacc191494ceebbf9612822044

Contents?: true

Size: 1.4 KB

Versions: 20

Compression:

Stored size: 1.4 KB

Contents

#!/usr/bin/env ruby

=begin
  ActiveSalesforce
  Copyright (c) 2006 Doug Chasman

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
=end

require File.dirname(__FILE__) + '/rforce.rb'


class SalesforceLogin
  attr_reader :proxy
  
  def initialize(url, username, password) 
    puts "SalesforceLogin.initialize()"

    @proxy = RForce::Binding.new(url)
    
    login_result = @proxy.login(username, password).result
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activesalesforce-0.0.2 lib/salesforce_login.rb
activesalesforce-0.0.3 lib/salesforce_login.rb
activesalesforce-0.0.4 lib/salesforce_login.rb
activesalesforce-0.0.5 lib/salesforce_login.rb
activesalesforce-0.0.6 lib/salesforce_login.rb
activesalesforce-0.0.7 lib/salesforce_login.rb
activesalesforce-0.0.8 lib/salesforce_login.rb
activesalesforce-0.0.9 lib/salesforce_login.rb
activesalesforce-0.1.0 lib/salesforce_login.rb
activesalesforce-0.1.1 lib/salesforce_login.rb
activesalesforce-0.1.2 lib/salesforce_login.rb
activesalesforce-0.1.3 lib/salesforce_login.rb
activesalesforce-0.1.4 lib/salesforce_login.rb
activesalesforce-0.1.5 lib/salesforce_login.rb
activesalesforce-0.1.6 lib/salesforce_login.rb
activesalesforce-0.1.7 lib/salesforce_login.rb
activesalesforce-0.1.8 lib/salesforce_login.rb
activesalesforce-0.1.9 lib/salesforce_login.rb
activesalesforce-0.2.0 lib/salesforce_login.rb
activesalesforce-0.2.1 lib/salesforce_login.rb