Class: CnpOnline::EcheckForToken
- Inherits:
-
Object
- Object
- CnpOnline::EcheckForToken
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, name = 'echeckForToken') ⇒ Object
943 944 945 946 947 948 949 950 951 952 953 954 955 |
# File 'lib/XMLFields.rb', line 943 def self.from_hash(hash, name='echeckForToken') base = hash[name] if(base) this = EcheckForToken.new this.accNum = base['accNum'] this.routingNum = base['routingNum'] SchemaValidation.validate_length(this.accNum, true, 1, 17, name, 'accNum') SchemaValidation.validate_length(this.routingNum, true, 9, 9, name, 'routingNum') this else nil end end |