Class: Aladtec::Range

Inherits:
Object
  • Object
show all
Defined in:
lib/aladtec/range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#beginObject

Returns the value of attribute begin.



7
8
9
# File 'lib/aladtec/range.rb', line 7

def begin
  @begin
end

#endObject

Returns the value of attribute end.



7
8
9
# File 'lib/aladtec/range.rb', line 7

def end
  @end
end

#memberObject

Returns the value of attribute member.



7
8
9
# File 'lib/aladtec/range.rb', line 7

def member
  @member
end

#positionObject

Returns the value of attribute position.



7
8
9
# File 'lib/aladtec/range.rb', line 7

def position
  @position
end

#scheduleObject

Returns the value of attribute schedule.



7
8
9
# File 'lib/aladtec/range.rb', line 7

def schedule
  @schedule
end