Class: S2D::Device

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/s2d/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/s2d/device.rb', line 6

def name
  @name
end

#transportObject

Returns the value of attribute transport.



7
8
9
# File 'lib/s2d/device.rb', line 7

def transport
  @transport
end