Class: BrocadeREST::QuirksManager

Inherits:
Object
  • Object
show all
Defined in:
lib/brocade/quirksmanager.rb

Direct Known Subclasses

VtmQuirksManager

Instance Method Summary collapse

Constructor Details

#initialize(restVersion) ⇒ QuirksManager

Returns a new instance of QuirksManager.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/brocade/quirksmanager.rb', line 13

def initialize(restVersion)

	@restVersion = restVersion
	@quirks = [ ]
	@quirkHash = {}

	# manifest: JSON String 
	# required: array of required params
	# writeFunc: Any special function required for writing JSON - returns the json
	# compareFunc: Any special function required prior to comparing JSON - returns a hash
	# readFunc: Any special function required when reading JSON - returns the json
	# deleteFunc: Any special function required prior to deletion - not used

end

Instance Method Details

#getQuirk(name) ⇒ Object

Return a specific quickhash



34
35
36
# File 'lib/brocade/quirksmanager.rb', line 34

def getQuirk(name)
	return @quirkHash[name]
end

#getQuirksObject

return the list of types which have quirks (currently this is just ssl)



29
30
31
# File 'lib/brocade/quirksmanager.rb', line 29

def getQuirks()
	return @quirks
end