Class: SystemsSet
Instance Attribute Summary
Attributes inherited from OperationSet
#list
Instance Method Summary
collapse
#-, #extra, #fetch, #initialize
Constructor Details
This class inherits a constructor from OperationSet
Instance Method Details
#delete(list) ⇒ Object
1024
1025
1026
1027
1028
|
# File 'lib/satops/operator.rb', line 1024
def delete(list)
list=[list] if list.class != Array
@sat.system.deleteSystems(Helpers.filter(list, 'id'))
end
|
#delete_all ⇒ Object
1030
1031
1032
|
# File 'lib/satops/operator.rb', line 1030
def delete_all
delete(@sat.system.listSystems)
end
|
#fetch_all ⇒ Object
1034
1035
1036
1037
1038
1039
1040
|
# File 'lib/satops/operator.rb', line 1034
def fetch_all
systems=[]
@sat.system.listSystems.each do |sys|
systems << System.new(System.reader(@sat, sys['id']))
end
systems
end
|
#include?(arg) ⇒ Boolean
1042
1043
1044
|
# File 'lib/satops/operator.rb', line 1042
def include?(arg)
self.include_id?(arg)
end
|