Class: RailsDrips::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_drips/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#campaignObject

Returns the value of attribute campaign

Returns:

  • (Object)

    the current value of campaign



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def campaign
  @campaign
end

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def count
  @count
end

#deliveryObject

Returns the value of attribute delivery

Returns:

  • (Object)

    the current value of delivery



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def delivery
  @delivery
end

#enrollmentObject

Returns the value of attribute enrollment

Returns:

  • (Object)

    the current value of enrollment



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def enrollment
  @enrollment
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def reason
  @reason
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



4
5
6
# File 'lib/rails_drips/result.rb', line 4

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (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