Class: Stupeflixclient::StupeflixProfileSet
- Inherits:
-
StupeflixXMLNode
- Object
- StupeflixXMLNode
- Stupeflixclient::StupeflixProfileSet
- Defined in:
- lib/stupeflixclient/stupeflix_client.rb
Instance Method Summary collapse
- #deflt(profiles) ⇒ Object
-
#initialize(profiles, meta = nil, notify = nil) ⇒ StupeflixProfileSet
constructor
A new instance of StupeflixProfileSet.
Methods inherited from StupeflixXMLNode
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, = nil, notify = nil) children = (, 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 |