Class: FbGraph::Device
- Inherits:
-
Object
- Object
- FbGraph::Device
- Includes:
- Comparison
- Defined in:
- lib/fb_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/fb_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/fb_graph/device.rb', line 4 def hardware @hardware end |
#os ⇒ Object
Returns the value of attribute os.
4 5 6 |
# File 'lib/fb_graph/device.rb', line 4 def os @os end |