voys_api 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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