Class: LitleOnline::VirtualGiftCard

Inherits:
Object
  • Object
show all
Includes:
XML::Mapping
Defined in:
lib/XMLFields.rb

Class Method Summary collapse

Class Method Details

.from_hash(hash, name = "virtualGiftCard") ⇒ Object



1240
1241
1242
1243
1244
1245
1246
1247
1248
# File 'lib/XMLFields.rb', line 1240

def self.from_hash(hash, name="virtualGiftCard")
  base = hash[name]
  if(base)
    this = VirtualGiftCard.new
    this.accountNumberLength = base['accountNumberLength']
    this.giftCardBin = base['giftCardBin']
    this
  end
end