Sha256: 8c071e99748adf3cb30e20a6591b35befa04c585adee391a706f8f9a115e3470

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 == 2
          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.3 lib/fetcher-microdata/review.rb