Class: FacebookAds::FieldTypes::Enum
- Defined in:
- lib/facebook_ads/field_types/enum.rb
Instance Method Summary collapse
-
#initialize(vals) ⇒ Enum
constructor
A new instance of Enum.
Methods inherited from Base
Methods included from FacebookAds::FieldTypes
Constructor Details
#initialize(vals) ⇒ Enum
Returns a new instance of Enum.
12 13 14 |
# File 'lib/facebook_ads/field_types/enum.rb', line 12 def initialize(vals) @values = (vals.is_a?(Proc) ? vals.call : vals ) end |