Class: FacebookAds::FieldTypes::Enum

Inherits:
Base
  • Object
show all
Defined in:
lib/facebook_ads/field_types/enum.rb

Instance Method Summary collapse

Methods inherited from Base

#deserialize, #serialize

Methods included from FacebookAds::FieldTypes

#for, #lookup, #register

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