lib/scraper/parser/imei_page.rb
def expiration_date_parse(subject)
        pattern = self.class.const_get("#{subject.upcase}_EXPIRATION_PATTERN")
        matchers = pattern.match(script_content)
        @data[:"#{subject}_expiration"] = matchers ?
          Date.parse(matchers[:date]).to_s : "Expired"
      rescue ArgumentError
      end
#
# Parse and store the expiration date
#
Parse and store the expiration date
Parse and store the expiration date
def expiration_date_parse(subject)
        pattern = self.class.const_get("#{subject.upcase}_EXPIRATION_PATTERN")
        matchers = pattern.match(script_content)
        @data[:"#{subject}_expiration"] = matchers ?
          Date.parse(matchers[:date]).to_s : "Expired"
      rescue ArgumentError
      end
def expiration_date_parse ( subject ) pattern = self . class . const_get ( "#{subject.upcase}_EXPIRATION_PATTERN" ) matchers = pattern . match ( script_content ) @data [ :" #{ subject } _expiration " ] = matchers ? Date . parse ( matchers [ :date ] ) . to_s : "Expired" rescue ArgumentError end
Parse and store the expiration date
Parse and store the expiration date
subject