Class: Stf::Device
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Stf::Device
- Defined in:
- lib/stf/model/device.rb
Instance Method Summary collapse
Instance Method Details
#checkFilter(filter) ⇒ Object
11 12 13 14 15 |
# File 'lib/stf/model/device.rb', line 11 def checkFilter(filter) return true if filter.nil? key, value = filter.split(':', 2) getValue(key) == value end |
#getKeys ⇒ Object
7 8 9 |
# File 'lib/stf/model/device.rb', line 7 def getKeys getKeysNextLevel('', self) end |
#getValue(key) ⇒ Object
3 4 5 |
# File 'lib/stf/model/device.rb', line 3 def getValue(key) getValueFromObject(self, key) end |