Method: WebPay::ChargeListRequest.create

Defined in:
lib/webpay/data_types.rb

.create(params) ⇒ Object



683
684
685
686
687
688
689
690
691
# File 'lib/webpay/data_types.rb', line 683

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