This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 92aab06d532b8ea638e3eab2ae3c1a883a8c451f
tree 24de347f2f4bccdccde0dda7f8d29664061059a0
parent 65ae4746caae18d41c9fd7cf9aa88ffebef34818
tree 24de347f2f4bccdccde0dda7f8d29664061059a0
parent 65ae4746caae18d41c9fd7cf9aa88ffebef34818
dm-adapters / salesforce
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
LICENSE | Tue May 13 16:06:43 -0700 2008 | [wycats] |
| |
README.markdown | Tue May 13 16:06:43 -0700 2008 | [wycats] |
| |
Rakefile | Tue Nov 25 15:02:16 -0800 2008 | [halorgium] |
| |
dm-salesforce.gemspec | Tue Nov 25 15:02:16 -0800 2008 | [halorgium] |
| |
lib/ | Tue Nov 25 14:59:23 -0800 2008 | [halorgium] |
| |
spec/ | Thu Nov 13 13:38:23 -0800 2008 | [halorgium] |
README.markdown
dm-salesforce
A gem that provides a Salesforce Adapter for DataMapper.
The URI for a Salesforce repository is:
salesforce://username:password@salesforce.wsdl # relative wsdl path
salesforce://username:password@/etc/salesforce.wsdl # absolute wsdl path
The wsdl is converted into Ruby classes and stored in ~/.salesforce. This automatically happens the first time you use the salesforce adapter, so you don’t need to worry about generating Ruby code. It just works.
An example of using the adapter:
class Account
include DataMapper::Resource
property :id, String, :key => true
property :name, String
property :description, String
property :billing_city, String
property :billing_postal_code, String
property :billing_country, String
property :billing_state, String
property :billing_street, String
property :fax, String
property :phone, String
property :type, String
property :website, String
has n, :contacts
end
class Contact
include DataMapper::Resource
property :id, String, :key => true
property :title, String
property :email, String
property :first_name, String
property :last_name, String
property :home_phone, String
property :mobile_phone, String
property :phone, String
belongs_to :account
end
You can then do Contact.all("account.name.like" => "%ruby%"), which will get a list of all contacts whose associated account’s name is like %ruby%.





