Class: DogEventer::Scope
- Inherits:
-
Object
- Object
- DogEventer::Scope
- Defined in:
- lib/dogeventer/scope.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(start_time, events = nil) ⇒ Scope
constructor
A new instance of Scope.
Constructor Details
#initialize(start_time, events = nil) ⇒ Scope
Returns a new instance of Scope.
4 5 6 7 |
# File 'lib/dogeventer/scope.rb', line 4 def initialize(start_time, events=nil) @start_time = start_time @events = events || [] end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
3 4 5 |
# File 'lib/dogeventer/scope.rb', line 3 def events @events end |