mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
clean up syntax
This commit is contained in:
parent
f0ddfca71d
commit
d291020a43
@ -126,12 +126,10 @@ module Stripe
|
||||
define_method(k) { @values[k] }
|
||||
define_method(k_eq) do |v|
|
||||
if v == ""
|
||||
raise ArgumentError.new(<<EOF.gsub(/\n/, ' ')
|
||||
You cannot set #{k} to an empty string.
|
||||
We interpret empty strings as nil in requests.
|
||||
You may set #{self}.#{k} = nil to delete the property.
|
||||
EOF
|
||||
)
|
||||
raise ArgumentError.new(
|
||||
"You cannot set #{k} to an empty string." +
|
||||
"We interpret empty strings as nil in requests." +
|
||||
"You may set #{self}.#{k} = nil to delete the property.")
|
||||
end
|
||||
@values[k] = v
|
||||
@unsaved_values.add(k)
|
||||
|
Loading…
x
Reference in New Issue
Block a user