Sha256: 06d2fca6b6bd20c13045d6db917da85b83e3101b6fea6e2948793e8b017ef5a6

Contents?: true

Size: 283 Bytes

Versions: 7

Compression:

Stored size: 283 Bytes

Contents

class Hash
  def self.from_xml(xml)
    xml_parsed = ActiveSupport::XmlMini.parse(xml)
    if xml_parsed["tickets"]
      xml_parsed["tickets"].delete "current_page"
      xml_parsed["tickets"].delete "total_pages"
    end
    typecast_xml_value(unrename_keys(xml_parsed))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buildmeister-3.0.5 lib/buildmeister/core_ext.rb
buildmeister-3.0.4 lib/buildmeister/core_ext.rb
buildmeister-3.0.2 lib/buildmeister/core_ext.rb
buildmeister-3.0.1 lib/buildmeister/core_ext.rb
buildmeister-3.0.0 lib/buildmeister/core_ext.rb
buildmeister-2.0.6 lib/buildmeister/core_ext.rb
buildmeister-2.0.5 lib/core_ext.rb