Class: Example::Signup::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/example/signup/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dobObject (readonly)

Returns the value of attribute dob.



7
8
9
# File 'lib/example/signup/models.rb', line 7

def dob
  @dob
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/example/signup/models.rb', line 7

def name
  @name
end

#notifiedObject

Returns the value of attribute notified.



8
9
10
# File 'lib/example/signup/models.rb', line 8

def notified
  @notified
end

Instance Method Details

#createObject



16
# File 'lib/example/signup/models.rb', line 16

def create; true; end

#notifyObject



17
# File 'lib/example/signup/models.rb', line 17

def notify; true; end