lib/vnstat/result/hour.rb in vnstat-ruby-1.0.5 vs lib/vnstat/result/hour.rb in vnstat-ruby-1.1.0
- old
+ new
@@ -31,10 +31,14 @@
# @param [Nokogiri::XML::Element] element The XML element.
# @return [Hour]
def self.extract_from_xml_element(element)
date = Parser.extract_date_from_xml_element(element)
hour = Integer(element.attr('id').to_s)
- new(date, hour, *Parser.extract_transmitted_bytes_from_xml_element(element))
+ new(
+ date,
+ hour,
+ *Parser.extract_transmitted_bytes_from_xml_element(element)
+ )
end
##
# @return [Integer, nil]
def <=>(other)