Class: Stupeflix::StupeflixMeta

Inherits:
StupeflixXMLNode show all
Defined in:
lib/stupeflix.rb

Instance Method Summary collapse

Methods inherited from StupeflixXMLNode

#metaChildrenAppend, #xmlGet

Constructor Details

#initialize(dict) ⇒ StupeflixMeta

Returns a new instance of StupeflixMeta.



254
255
256
257
258
259
260
261
# File 'lib/stupeflix.rb', line 254

def initialize(dict)
  children = []

  dict.all? {|k, v|
    children += [StupeflixXMLNode.new(k, nil, nil, v)]
  }
  super("meta", {}, children)
end