lib/soapy_cake/response.rb in soapy_cake-1.15.0 vs lib/soapy_cake/response.rb in soapy_cake-1.16.0

- old
+ new

@@ -3,16 +3,16 @@ include Helper SHORT_ELEMENT_DEPTH = 3 ELEMENTS_DEPTH = 5 - attr_reader :body, :short_response, :time_offset + attr_reader :body, :short_response, :time_converter - def initialize(body, short_response, time_offset) + def initialize(body, short_response, time_converter) @body = body @short_response = short_response - @time_offset = time_offset + @time_converter = time_converter end def to_enum check_errors! @@ -35,10 +35,10 @@ sax.at_depth(ELEMENTS_DEPTH).first.nil? end def typed_element(element) walk_tree(element) do |value, key| - ResponseValue.new(key, value, time_offset: time_offset).parse + ResponseValue.new(key, value, time_converter).parse end end def sax @sax ||= Saxerator.parser(StringIO.new(body)) do |config|