Class: FbGraph::Device

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/fb_graph/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hardwareObject

Returns the value of attribute hardware.



4
5
6
# File 'lib/fb_graph/device.rb', line 4

def hardware
  @hardware
end

#osObject

Returns the value of attribute os.



4
5
6
# File 'lib/fb_graph/device.rb', line 4

def os
  @os
end