Class: ViralLoops::Models::Participant
- Inherits:
-
Object
- Object
- ViralLoops::Models::Participant
- Defined in:
- lib/viral_loops/models/participant.rb,
lib/viral_loops/models/participant/convert.rb
Defined Under Namespace
Classes: Convert
Instance Attribute Summary collapse
-
#new ⇒ Object
Returns the value of attribute new.
-
#referral_code ⇒ Object
Returns the value of attribute referral_code.
Instance Method Summary collapse
-
#initialize(referral_code:, new: false) ⇒ Participant
constructor
A new instance of Participant.
- #new? ⇒ Boolean
Constructor Details
#initialize(referral_code:, new: false) ⇒ Participant
Returns a new instance of Participant.
8 9 10 11 |
# File 'lib/viral_loops/models/participant.rb', line 8 def initialize(referral_code:, new: false) @referral_code = referral_code @new = new end |
Instance Attribute Details
#new ⇒ Object
Returns the value of attribute new.
6 7 8 |
# File 'lib/viral_loops/models/participant.rb', line 6 def new @new end |
#referral_code ⇒ Object
Returns the value of attribute referral_code.
6 7 8 |
# File 'lib/viral_loops/models/participant.rb', line 6 def referral_code @referral_code end |
Instance Method Details
#new? ⇒ Boolean
13 |
# File 'lib/viral_loops/models/participant.rb', line 13 def new? = new |