Class: PA::DOM::Device
- Inherits:
-
Object
- Object
- PA::DOM::Device
- Defined in:
- lib/dom/device.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/dom/device.rb', line 2 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/dom/device.rb', line 2 def id @id end |
Class Method Details
.adapt_json(value) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/dom/device.rb', line 4 def self.adapt_json(value) device = PA::DOM::Device.new device.id = value["ID"] device.description = value["Description"] device end |