Class: OneSignal::Segment
- Inherits:
-
Object
- Object
- OneSignal::Segment
- Defined in:
- lib/onesignal/segment.rb
Constant Summary collapse
- ALL_USERS =
'All'
- ACTIVE_USERS =
'Active Users'
- ENGAGED_USERS =
'Engaged Users'
- INACTIVE_USERS =
'Inactive Users'
- SUBSCRIBED_USERS =
'Subscribed Users'
Instance Method Summary collapse
- #as_json(_options = nil) ⇒ Object
-
#initialize(name:) ⇒ Segment
constructor
A new instance of Segment.
- #to_s ⇒ Object
Constructor Details
#initialize(name:) ⇒ Segment
Returns a new instance of Segment.
11 12 13 |
# File 'lib/onesignal/segment.rb', line 11 def initialize name: @name = name end |
Instance Method Details
#as_json(_options = nil) ⇒ Object
15 16 17 |
# File 'lib/onesignal/segment.rb', line 15 def as_json = nil @name.to_s end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/onesignal/segment.rb', line 19 def to_s @name.to_s end |