Class: Person

Inherits:
Object
  • Object
show all
Defined in:
lib/gthc/olson/person.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dayFreeObject

Returns the value of attribute dayFree.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def dayFree
  @dayFree
end

#dayScheduledObject

Returns the value of attribute dayScheduled.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def dayScheduled
  @dayScheduled
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def name
  @name
end

#nightFreeObject

Returns the value of attribute nightFree.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def nightFree
  @nightFree
end

#nightScheduledObject

Returns the value of attribute nightScheduled.



2
3
4
# File 'lib/gthc/olson/person.rb', line 2

def nightScheduled
  @nightScheduled
end