Class: OperationSet
- Inherits:
-
Object
show all
- Defined in:
- lib/satops/operator.rb
Direct Known Subclasses
ActivationkeysSet, ChannelsSet, ConfigchannelsSet, KickstartFilepreservationsSet, KickstartKeysSet, KickstartSnippetsSet, KickstartsSet, OrgTrustsSet, OrgsSet, SystemCustominfosSet, SystemgroupsSet, SystemsSet, UsersSet
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of OperationSet.
200
201
202
203
|
# File 'lib/satops/operator.rb', line 200
def initialize(sat)
@sat=sat
@list=[]
end
|
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
198
199
200
|
# File 'lib/satops/operator.rb', line 198
def list
@list
end
|
Instance Method Details
#-(val) ⇒ Object
232
233
234
235
236
237
238
|
# File 'lib/satops/operator.rb', line 232
def -(val)
result=[]
@list.each do |e|
result << e unless val.include?(e)
end
result
end
|
#delete_all ⇒ Object
211
212
213
214
215
|
# File 'lib/satops/operator.rb', line 211
def delete_all
self.fetch_all.each do |obj|
obj.delete(@sat)
end
end
|
205
206
207
208
209
|
# File 'lib/satops/operator.rb', line 205
def (list)
list.each do |obj|
obj.delete(@sat)
end
end
|
#fetch ⇒ Object
217
218
219
|
# File 'lib/satops/operator.rb', line 217
def fetch
@list=fetch_all
end
|