Class: UpnpContentExplorer::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/upnp_content_explorer/item.rb

Instance Method Summary collapse

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