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.
80 81 82 |
# File 'lib/sfpagent/helper.rb', line 80 def clouds @clouds end |
Instance Method Details
#reset ⇒ Object
82 83 84 85 |
# File 'lib/sfpagent/helper.rb', line 82 def reset @clouds = [] self end |
#visit(name, value, parent) ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/sfpagent/helper.rb', line 87 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 |