Class: Stupeflixclient::StupeflixProfileSet

Inherits:
StupeflixXMLNode show all
Defined in:
lib/stupeflixclient/stupeflix_client.rb

Instance Method Summary collapse

Methods inherited from StupeflixXMLNode

#metaChildrenAppend, #xmlGet

Constructor Details

#initialize(profiles, meta = nil, notify = nil) ⇒ StupeflixProfileSet

Returns a new instance of StupeflixProfileSet.



263
264
265
266
# File 'lib/stupeflixclient/stupeflix_client.rb', line 263

def initialize( profiles, meta = nil, notify = nil)
  children = metaChildrenAppend(meta, notify, profiles)
  super("profiles", {}, children)
end

Instance Method Details

#deflt(profiles) ⇒ Object



268
269
270
271
272
273
274
275
276
# File 'lib/stupeflixclient/stupeflix_client.rb', line 268

def deflt(profiles)
  profSet = []
  for p in profiles
    upload = StupeflixDefaultUpload
    profSet += [StupeflixProfile(p, [upload])]
  end

  return  StupeflixProfileSet.new(profSet)
end