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.
24 25 26 |
# File 'lib/facebook_ads/field_types/enum.rb', line 24 def initialize(vals) @values = (vals.is_a?(Proc) ? vals.call : vals ) end |