Sha256: a9510cffabfe44377a7a24f4b5152e1779672bbfbdd2042813436d5febab8da1
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
# encoding: utf-8 module Nokaya class Basic attr_reader :options, :args, :image_url, :path, :file_name, :type, :name def initialize args, options @options = options @workers = Workers.new(options) @args = @workers.check_args(args) @file_name = [] @image_url = [] @path = @workers.path @type = :basic @name = options['name'] if options['name'] end def get_basic page page.xpath("//meta[@property='og:image']/@content").first.value end def parse url Nokogiri::HTML(open url) end def save @workers.save(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nokaya-0.1.1 | lib/nokaya/basic.rb |