Class: MasterCard::Core::Model::CaseInsensitiveMap
- Defined in:
- lib/mastercard/core/model.rb
Overview
CaseInsensitiveMap
Constant Summary
Constants inherited from SmartMap
Instance Method Summary collapse
- #containsKeys(key) ⇒ Object
- #get(key) ⇒ Object
-
#initialize ⇒ CaseInsensitiveMap
constructor
A new instance of CaseInsensitiveMap.
- #set(key, value) ⇒ Object
- #setAll(map) ⇒ Object
Methods inherited from SmartMap
Constructor Details
#initialize ⇒ CaseInsensitiveMap
Returns a new instance of CaseInsensitiveMap.
347 348 349 350 |
# File 'lib/mastercard/core/model.rb', line 347 def initialize #call the base class constructor super() end |
Instance Method Details
#containsKeys(key) ⇒ Object
352 353 354 |
# File 'lib/mastercard/core/model.rb', line 352 def containsKeys(key) return super(key.to_s.downcase) end |
#get(key) ⇒ Object
356 357 358 |
# File 'lib/mastercard/core/model.rb', line 356 def get(key) return super(key.to_s.downcase) end |
#set(key, value) ⇒ Object
360 361 362 |
# File 'lib/mastercard/core/model.rb', line 360 def set(key,value) super(key.to_s.downcase, value) end |
#setAll(map) ⇒ Object
364 365 366 |
# File 'lib/mastercard/core/model.rb', line 364 def setAll(map) super(parseMap(map)) end |