Class: Aubergine::Satellite
- Inherits:
-
Object
- Object
- Aubergine::Satellite
- Defined in:
- lib/aubergine/satellite.rb
Instance Attribute Summary collapse
-
#devices ⇒ Object
readonly
Returns the value of attribute devices.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, devices) ⇒ Satellite
constructor
A new instance of Satellite.
- #to_s ⇒ Object
Constructor Details
#initialize(name, devices) ⇒ Satellite
Returns a new instance of Satellite.
5 6 7 8 |
# File 'lib/aubergine/satellite.rb', line 5 def initialize(name, devices) @name = name @devices = devices end |
Instance Attribute Details
#devices ⇒ Object (readonly)
Returns the value of attribute devices.
3 4 5 |
# File 'lib/aubergine/satellite.rb', line 3 def devices @devices end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/aubergine/satellite.rb', line 3 def name @name end |
Class Method Details
.backend=(data) ⇒ Object
18 19 20 |
# File 'lib/aubergine/satellite.rb', line 18 def self.backend=(data) @@backend = data end |
.find(*args) ⇒ Object
14 15 16 |
# File 'lib/aubergine/satellite.rb', line 14 def self.find(*args) @@backend.find(*args) end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/aubergine/satellite.rb', line 10 def to_s @name end |