ejholmes/restforce — pull request #53 by ejholmes (2013-01-11 07:57:04+00:00)
Title: Ability to retrieve picklist values for a given field.

Say we have an sObject with two picklist fields: `Cars` and `Colors`. The `Colors` field depends on the value of the `Cars` field. We could setup a field dependency like:

Cars
Ferrari
Lamborghini
Porsche

Colors
x Red
Red
Red

Blue
x Blue
Blue

Yellow
x Yellow
Yellow

Black
Black
x Black

This allows you to do the following:

```ruby
client.picklist_values('SObject', 'Cars')
#=> ['Ferrari', 'Lamborghini', 'Porsche']

client.picklist_values('SObject', 'Colors', :valid_for => 'Lamborghini')
#=> ['Blue', 'Yellow']
```