Class: ProjectSimulator::MotionTrigger
- Inherits:
-
Object
- Object
- ProjectSimulator::MotionTrigger
- Defined in:
- lib/projectsimulator.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location) ⇒ MotionTrigger
constructor
A new instance of MotionTrigger.
- #match ⇒ Object
Constructor Details
#initialize(location) ⇒ MotionTrigger
Returns a new instance of MotionTrigger.
326 327 328 |
# File 'lib/projectsimulator.rb', line 326 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
324 325 326 |
# File 'lib/projectsimulator.rb', line 324 def location @location end |
Instance Method Details
#match ⇒ Object
330 331 332 |
# File 'lib/projectsimulator.rb', line 330 def match() @location.downcase == location.downcase end |