Sha256: 7cd1f6ccec4a71587d434674c3906686d92b743c08ed48784f8c6e08d602717e

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