Class: S2D::Device
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#transport ⇒ Object
Returns the value of attribute transport.
Instance Method Summary collapse
-
#initialize(name) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(name) ⇒ Device
Returns a new instance of Device.
9 10 11 |
# File 'lib/s2d/device.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/s2d/device.rb', line 6 def name @name end |
#transport ⇒ Object
Returns the value of attribute transport.
7 8 9 |
# File 'lib/s2d/device.rb', line 7 def transport @transport end |