Method: WebPay::BasicListRequest.create
- Defined in:
- lib/webpay/data_types.rb
.create(params) ⇒ Object
1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/webpay/data_types.rb', line 1073 def self.create(params) return params if params.is_a?(self) hash = case params when Hash; params else raise WebPay::InvalidRequestError.new("#{self} does not accept the given value", params) end self.new(hash) end |