Class: UpnpContentExplorer::Item
- Inherits:
-
Object
- Object
- UpnpContentExplorer::Item
- Defined in:
- lib/upnp_content_explorer/item.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Item
constructor
A new instance of Item.
- #method_missing(key) ⇒ Object
Constructor Details
#initialize(data) ⇒ Item
3 4 5 |
# File 'lib/upnp_content_explorer/item.rb', line 3 def initialize(data) @data = data end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(key) ⇒ Object
7 8 9 10 |
# File 'lib/upnp_content_explorer/item.rb', line 7 def method_missing(key) return @data[key] if @data.has_key?(key) super end |