Class: GSGraph::Device
- Inherits:
-
Object
- Object
- GSGraph::Device
- Includes:
- Comparison
- Defined in:
- lib/gs_graph/device.rb
Instance Attribute Summary collapse
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#os ⇒ Object
Returns the value of attribute os.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Device
constructor
A new instance of Device.
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ Device
Returns a new instance of Device.
6 7 8 9 |
# File 'lib/gs_graph/device.rb', line 6 def initialize(attributes = {}) @os = attributes[:os] @hardware = attributes[:hardware] end |
Instance Attribute Details
#hardware ⇒ Object
Returns the value of attribute hardware.
4 5 6 |
# File 'lib/gs_graph/device.rb', line 4 def hardware @hardware end |
#os ⇒ Object
Returns the value of attribute os.
4 5 6 |
# File 'lib/gs_graph/device.rb', line 4 def os @os end |