Class: BrocadeREST::QuirksManager
- Inherits:
-
Object
- Object
- BrocadeREST::QuirksManager
- Defined in:
- lib/brocade/quirksmanager.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#getQuirk(name) ⇒ Object
Return a specific quickhash.
-
#getQuirks ⇒ Object
return the list of types which have quirks (currently this is just ssl).
-
#initialize(restVersion) ⇒ QuirksManager
constructor
A new instance of QuirksManager.
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 |
#getQuirks ⇒ Object
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 |