Class: Sfp::Helper::CloudFinder
- Inherits:
-
Object
- Object
- Sfp::Helper::CloudFinder
- Defined in:
- lib/sfpagent/helper.rb
Constant Summary collapse
- CloudSchema =
'$.Cloud'
Instance Attribute Summary collapse
-
#clouds ⇒ Object
Returns the value of attribute clouds.
Instance Method Summary collapse
Instance Attribute Details
#clouds ⇒ Object
Returns the value of attribute clouds.
111 112 113 |
# File 'lib/sfpagent/helper.rb', line 111 def clouds @clouds end |
Instance Method Details
#reset ⇒ Object
113 114 115 116 |
# File 'lib/sfpagent/helper.rb', line 113 def reset @clouds = [] self end |
#visit(name, value, parent) ⇒ Object
118 119 120 121 122 123 124 125 126 |
# File 'lib/sfpagent/helper.rb', line 118 def visit(name, value, parent) if value.is_a?(Hash) if value['_context'] == 'object' @clouds << parent.ref.push(name) if value.has_key?('_classes') and value['_classes'].index(CloudSchema) return true end end false end |