Class: Person
- Inherits:
-
Object
- Object
- Person
- Defined in:
- lib/gthc/olson/person.rb
Instance Attribute Summary collapse
-
#dayFree ⇒ Object
Returns the value of attribute dayFree.
-
#dayScheduled ⇒ Object
Returns the value of attribute dayScheduled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nightFree ⇒ Object
Returns the value of attribute nightFree.
-
#nightScheduled ⇒ Object
Returns the value of attribute nightScheduled.
Instance Method Summary collapse
-
#initialize(id, name, dayFree, nightFree, dayScheduled, nightScheduled) ⇒ Person
constructor
A new instance of Person.
Constructor Details
#initialize(id, name, dayFree, nightFree, dayScheduled, nightScheduled) ⇒ Person
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gthc/olson/person.rb', line 7 def initialize(id, name, dayFree, nightFree, dayScheduled, nightScheduled) @id = id @name = name @dayFree = dayFree @dayScheduled = dayScheduled @nightFree = nightFree @nightScheduled = nightScheduled # @maxDayHours = maxDayHours # @idealDayHours = idealDayHours end |
Instance Attribute Details
#dayFree ⇒ Object
Returns the value of attribute dayFree.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def dayFree @dayFree end |
#dayScheduled ⇒ Object
Returns the value of attribute dayScheduled.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def dayScheduled @dayScheduled end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def name @name end |
#nightFree ⇒ Object
Returns the value of attribute nightFree.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def nightFree @nightFree end |
#nightScheduled ⇒ Object
Returns the value of attribute nightScheduled.
2 3 4 |
# File 'lib/gthc/olson/person.rb', line 2 def nightScheduled @nightScheduled end |