Class: Sfp::Helper::SchemaCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/sfpagent/helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSchemaCollector

Returns a new instance of SchemaCollector.



66
67
68
# File 'lib/sfpagent/helper.rb', line 66

def initialize
	@schemata = []
end

Instance Attribute Details

#schemataObject (readonly)

Returns the value of attribute schemata.



65
66
67
# File 'lib/sfpagent/helper.rb', line 65

def schemata
  @schemata
end

Instance Method Details

#visit(name, value, parent) ⇒ Object



70
71
72
73
74
75
# File 'lib/sfpagent/helper.rb', line 70

def visit(name, value, parent)
	if value.is_a?(Hash) and value.has_key?('_classes')
		value['_classes'].each { |s| @schemata << s }
	end
	true
end