Method: AmplitudeAPI::Event#extra_properties
- Defined in:
- lib/amplitude_api/event.rb
#extra_properties ⇒ Hash
Returns optional properties (not belong to the API, are assigned by the user) This way, if the API is updated with new properties, the gem will be able to work with the new specification until the code is modified
95 96 97 98 99 100 |
# File 'lib/amplitude_api/event.rb', line 95 def extra_properties @extra_properties.map do |prop| val = send(prop) val ? [prop.to_sym, val] : nil end.compact.to_h end |