voys_api 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/voys_api/client.rb +2 -2
- data/lib/voys_api/version.rb +1 -1
- metadata +1 -1
data/lib/voys_api/client.rb
CHANGED
@@ -135,8 +135,8 @@ private
|
|
135
135
|
converted_options = options.clone # deep clone?
|
136
136
|
|
137
137
|
# convert options
|
138
|
-
converted_options[:period_from] = options[:period_from].strftime("%Y-%m-%d") if
|
139
|
-
converted_options[:period_to] = options[:period_to].strftime("%Y-%m-%d") if
|
138
|
+
converted_options[:period_from] = options[:period_from].strftime("%Y-%m-%d") if options[:period_from] && !options[:period_from].is_a?(String)
|
139
|
+
converted_options[:period_to] = options[:period_to].strftime("%Y-%m-%d") if options[:period_to] && !options[:period_to].is_a?(String)
|
140
140
|
|
141
141
|
return converted_options
|
142
142
|
end
|
data/lib/voys_api/version.rb
CHANGED