Sha256: 742efd90059f17b450a2f9540a599d443125dbeac6e86957fee2901d44b89108

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

module Fetcher
  class Microdata
    class Review < 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/Review"
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fetcher-microdata-0.0.5 lib/fetcher-microdata/review.rb