Class: Example::Signup::Models::User
- Inherits:
-
Object
- Object
- Example::Signup::Models::User
- Defined in:
- lib/example/signup/models.rb
Instance Attribute Summary collapse
-
#dob ⇒ Object
readonly
Returns the value of attribute dob.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#notified ⇒ Object
Returns the value of attribute notified.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(name, dob) ⇒ User
constructor
A new instance of User.
- #notify ⇒ Object
Constructor Details
#initialize(name, dob) ⇒ User
Returns a new instance of User.
10 11 12 13 14 |
# File 'lib/example/signup/models.rb', line 10 def initialize(name, dob) @name = name @dob = dob @notified = false end |
Instance Attribute Details
#dob ⇒ Object (readonly)
Returns the value of attribute dob.
7 8 9 |
# File 'lib/example/signup/models.rb', line 7 def dob @dob end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/example/signup/models.rb', line 7 def name @name end |
#notified ⇒ Object
Returns the value of attribute notified.
8 9 10 |
# File 'lib/example/signup/models.rb', line 8 def notified @notified end |
Instance Method Details
#create ⇒ Object
16 |
# File 'lib/example/signup/models.rb', line 16 def create; true; end |
#notify ⇒ Object
17 |
# File 'lib/example/signup/models.rb', line 17 def notify; true; end |