Method: UPnP::Device#marshal_load
- Defined in:
- lib/UPnP/device.rb
#marshal_load(data) ⇒ Object
Custom Marshal method that only loads device-specific data.
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 |
# File 'lib/UPnP/device.rb', line 575 def marshal_load(data) @type = data.shift @friendly_name = data.shift @sub_devices = data.shift @sub_services = data.shift @parent = data.shift @name = data.shift @manufacturer = data.shift @manufacturer_url = data.shift @model_description = data.shift @model_name = data.shift @model_number = data.shift @model_url = data.shift @serial_number = data.shift @upc = data.shift end |