Class: Fetcher::Microdata::UserComments
- Inherits:
-
Fetcher::Microdata
- Object
- Fetcher::Microdata
- Fetcher::Microdata::UserComments
- Defined in:
- lib/fetcher-microdata/user_comments.rb
Constant Summary
Constants inherited from Fetcher::Microdata
Instance Attribute Summary
Attributes inherited from Fetcher::Microdata
Instance Method Summary collapse
-
#initialize(*args) ⇒ UserComments
constructor
A new instance of UserComments.
Methods inherited from Fetcher::Microdata
Constructor Details
#initialize(*args) ⇒ UserComments
Returns a new instance of UserComments.
5 6 7 8 9 10 11 12 |
# File 'lib/fetcher-microdata/user_comments.rb', line 5 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/UserComments' end |