summaryrefslogtreecommitdiff
path: root/Pb_Api/Param/Options.py
diff options
context:
space:
mode:
Diffstat (limited to 'Pb_Api/Param/Options.py')
-rw-r--r--Pb_Api/Param/Options.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Pb_Api/Param/Options.py b/Pb_Api/Param/Options.py
new file mode 100644
index 0000000..d19f42a
--- /dev/null
+++ b/Pb_Api/Param/Options.py
@@ -0,0 +1,13 @@
+class Pb_Api_Param_Options:
+ def __init__(self, arr):
+ self._values = arr
+ def __iter__(self):
+ return iter(self._values)
+ def __str__(self):
+ return str(self._values)
+ def __getitem__(self, i):
+ return self._values[i]
+ def search(self, s):
+ for i in self:
+ if str(s) in i.value:
+ return i