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