Method: WebPay::EventListRequest.create

Defined in:
lib/webpay/data_types.rb

.create(params) ⇒ Object



1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'lib/webpay/data_types.rb', line 1544

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