Class: SystemsSet

Inherits:
OperationSet show all
Defined in:
lib/satops/operator.rb

Instance Attribute Summary

Attributes inherited from OperationSet

#list

Instance Method Summary collapse

Methods inherited from OperationSet

#-, #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)
  # To Test
  list=[list] if list.class != Array
  @sat.system.deleteSystems(Helpers.filter(list, 'id'))
end

#delete_allObject



1030
1031
1032
# File 'lib/satops/operator.rb', line 1030

def delete_all
  delete(@sat.system.listSystems)
end

#fetch_allObject



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

Returns:

  • (Boolean)


1042
1043
1044
# File 'lib/satops/operator.rb', line 1042

def include?(arg)
  self.include_id?(arg)
end