Class: IoT::Effector

Inherits:
Object
  • Object
show all
Defined in:
lib/iot/effector.rb

Overview

Effector - a controlled physical device that performs some (useful) action

Direct Known Subclasses

Actuator, DigitalEffector

Instance Method Summary collapse

Constructor Details

#initializeEffector

Returns a new instance of Effector.



10
11
12
13
# File 'lib/iot/effector.rb', line 10

def initialize
  @model = 'N/A'
  @name = 'N/A'
end

Instance Method Details

#model_nameObject



19
20
21
# File 'lib/iot/effector.rb', line 19

def model_name
  @model
end

#nameObject



15
16
17
# File 'lib/iot/effector.rb', line 15

def name
  @name
end