Sha256: 382104bf55aef2f8f173bfe70809c4874be48c856c70aa2b8a3bf6575cc06b4e
Contents?: true
Size: 450 Bytes
Versions: 68
Compression:
Stored size: 450 Bytes
Contents
module Paypal class Base include AttrRequired, AttrOptional, Util def initialize(attributes = {}) if attributes.is_a?(Hash) (required_attributes + optional_attributes).each do |key| value = if numeric_attribute?(key) Util.to_numeric(attributes[key]) else attributes[key] end self.send "#{key}=", value end end attr_missing! end end end
Version data entries
68 entries across 68 versions & 4 rubygems