Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.49 KB

File metadata and controls

32 lines (26 loc) · 1.49 KB

OneSignal::Filter

Properties

Name Type Description Notes
field String Required. Name of the field to use as the first operand in the filter expression. [optional]
key String If `field` is `tag`, this field is required to specify `key` inside the tags. [optional]
value String Constant value to use as the second operand in the filter expression. This value is required when the relation operator is a binary operator. [optional]
hours_ago String If `field` is session-related, this is required to specify the number of hours before or after the user's session. [optional]
radius Float If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. [optional]
lat Float If `field` is `location`, this is required to specify the user's latitude. [optional]
long Float If `field` is `location`, this is required to specify the user's longitude. [optional]
relation String Required. Operator of a filter expression. [optional]

Example

require 'onesignal'

instance = OneSignal::Filter.new(
  field: null,
  key: null,
  value: null,
  hours_ago: null,
  radius: null,
  lat: null,
  long: null,
  relation: null
)