Class: LitleOnline::PayPal
- Inherits:
-
Object
- Object
- LitleOnline::PayPal
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, name = 'payPal') ⇒ Object
784 785 786 787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/XMLFields.rb', line 784 def self.from_hash(hash, name='payPal') base = hash[name] if(base) this = PayPal.new this.payerId = base['payerId'] this.token = base['token'] this.transactionId = base['transactionId'] SchemaValidation.validate_required(this.payerId, true, name, 'payerId') SchemaValidation.validate_required(this.transactionId, true, name, 'transactionId') this else nil end end |