lib/garb/account_feed_request.rb in garb-0.8.5 vs lib/garb/account_feed_request.rb in garb-0.9.0

- old
+ new

@@ -13,13 +13,13 @@ def parsed_response @parsed_response ||= Crack::XML.parse(response.body) end def entries - parsed_response ? [parsed_response['feed']['entry']].flatten : [] + parsed_response ? Array(parsed_response['feed']['entry']).flatten.compact : [] end def segments - parsed_response ? [parsed_response['feed']['dxp:segment']].flatten : [] + parsed_response ? Array(parsed_response['feed']['dxp:segment']).flatten.compact : [] end end end