Sha256: a1c73265c86c97c6099c9b98cdffcd8930084b06a265504556462bd6818f0b2d

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

module Fandango
  module Showtime

    module_function

    def parse(node)
      {
        datetime: parse_datetime(node),
      }
    end

    def parse_datetime(node)
      datetime_str = node.at_css('time').attr('datetime')
      DateTime.parse(datetime_str)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fandango-2.1.0 lib/fandango/showtime.rb
fandango-2.0.0 lib/fandango/showtime.rb