Class: Aladtec::Range
- Inherits:
-
Object
- Object
- Aladtec::Range
- Defined in:
- lib/aladtec/range.rb
Instance Attribute Summary collapse
-
#begin ⇒ Object
Returns the value of attribute begin.
-
#end ⇒ Object
Returns the value of attribute end.
-
#member ⇒ Object
Returns the value of attribute member.
-
#position ⇒ Object
Returns the value of attribute position.
-
#schedule ⇒ Object
Returns the value of attribute schedule.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Range
constructor
A new instance of Range.
Constructor Details
#initialize(args = {}) ⇒ Range
Returns a new instance of Range.
9 10 11 12 13 14 15 |
# File 'lib/aladtec/range.rb', line 9 def initialize(args = {}) @member = Member.new(args["member"]) @position = Position.new(args["position"]) @schedule = Schedule.new(args["schedule"]) @begin = Time.parse(args["begin"]) if args["begin"] @end = Time.parse(args["end"]) if args["end"] end |
Instance Attribute Details
#begin ⇒ Object
Returns the value of attribute begin.
7 8 9 |
# File 'lib/aladtec/range.rb', line 7 def begin @begin end |
#end ⇒ Object
Returns the value of attribute end.
7 8 9 |
# File 'lib/aladtec/range.rb', line 7 def end @end end |
#member ⇒ Object
Returns the value of attribute member.
7 8 9 |
# File 'lib/aladtec/range.rb', line 7 def member @member end |
#position ⇒ Object
Returns the value of attribute position.
7 8 9 |
# File 'lib/aladtec/range.rb', line 7 def position @position end |
#schedule ⇒ Object
Returns the value of attribute schedule.
7 8 9 |
# File 'lib/aladtec/range.rb', line 7 def schedule @schedule end |