Class: RailsDrips::Result
- Inherits:
-
Struct
- Object
- Struct
- RailsDrips::Result
- Defined in:
- lib/rails_drips/result.rb
Instance Attribute Summary collapse
-
#campaign ⇒ Object
Returns the value of attribute campaign.
-
#count ⇒ Object
Returns the value of attribute count.
-
#delivery ⇒ Object
Returns the value of attribute delivery.
-
#enrollment ⇒ Object
Returns the value of attribute enrollment.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#campaign ⇒ Object
Returns the value of attribute campaign
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def campaign @campaign end |
#count ⇒ Object
Returns the value of attribute count
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def count @count end |
#delivery ⇒ Object
Returns the value of attribute delivery
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def delivery @delivery end |
#enrollment ⇒ Object
Returns the value of attribute enrollment
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def enrollment @enrollment end |
#reason ⇒ Object
Returns the value of attribute reason
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def reason @reason end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'lib/rails_drips/result.rb', line 4 def status @status end |
Instance Method Details
#success? ⇒ Boolean
5 6 7 |
# File 'lib/rails_drips/result.rb', line 5 def success? %i[enrolled removed activated paused resumed archived unarchived enqueued retried cancelled sent completed created version_created metadata_updated unchanged].include?(status) end |