Class: Restforce::Concerns::Picklists::PicklistValues
- Inherits:
-
Array
- Object
- Array
- Restforce::Concerns::Picklists::PicklistValues
- Defined in:
- lib/restforce/concerns/picklists.rb
Instance Method Summary collapse
-
#initialize(fields, field, options = {}) ⇒ PicklistValues
constructor
A new instance of PicklistValues.
Constructor Details
#initialize(fields, field, options = {}) ⇒ PicklistValues
Returns a new instance of PicklistValues.
32 33 34 35 36 37 38 39 |
# File 'lib/restforce/concerns/picklists.rb', line 32 def initialize(fields, field, = {}) @fields = fields @field = field @valid_for = .delete(:valid_for) raise "#{field} is not a dependent picklist" if @valid_for && !dependent? super(picklist_values) end |