Class: Fetcher::Microdata::Review

Inherits:
Fetcher::Microdata show all
Defined in:
lib/fetcher-microdata/review.rb

Constant Summary

Constants inherited from Fetcher::Microdata

VERSION

Instance Attribute Summary

Attributes inherited from Fetcher::Microdata

#_type

Instance Method Summary collapse

Methods inherited from Fetcher::Microdata

#coerce

Constructor Details

#initialize(*args) ⇒ Review

Returns a new instance of Review.



5
6
7
8
9
10
11
12
# File 'lib/fetcher-microdata/review.rb', line 5

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