Method: WebPay::TokenRequestCreate#initialize
- Defined in:
- lib/webpay/data_types.rb
#initialize(hash = {}) ⇒ TokenRequestCreate
Returns a new instance of TokenRequestCreate.
1267 1268 1269 1270 1271 |
# File 'lib/webpay/data_types.rb', line 1267 def initialize(hash = {}) hash = normalize_hash(hash) hash['card'] = WebPay::CardRequest.new(hash['card']) if hash['card'].is_a?(Hash) @attributes = hash end |