Sha256: 662d3a00a376e7036960f18baee888f31dd56503a019131221c6fdfec98a5dd2

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

module Fetcher
  class Microdata
    class ArticleSmall < Fetcher::Microdata

      def initialize *args
        if args.length == 3
          super *args
        else
          raise ArgumentError, "Wrong number of arguments #{args.length} and 3 needed"
        end
        @_type = "http://schema.org/Article/Small"
      end

      attribute :additionalType
      attribute :id
      attribute :articleBody
      attribute :author
      attribute :viewer
      attribute :dateCreated
      attribute :provider
      attribute :url
      attribute :comments
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fetcher-microdata-0.0.13 lib/fetcher-microdata/article_small.rb
fetcher-microdata-0.0.12 lib/fetcher-microdata/article_small.rb
fetcher-microdata-0.0.11 lib/fetcher-microdata/article_small.rb