lib/fetcher-microdata/person_user.rb in fetcher-microdata-0.0.2 vs lib/fetcher-microdata/person_user.rb in fetcher-microdata-0.0.3
- old
+ new
@@ -1,10 +1,14 @@
module Fetcher
class Microdata
class PersonUser < Fetcher::Microdata
def initialize *args
- super *args
+ if args.length == 1
+ super *args
+ else
+ raise ArgumentError, "Wrong number of arguments #{args.length} and 3 needed"
+ end
@_type = 'http://schema.org/Person/User'
end
attribute :additionalType
attribute :id
\ No newline at end of file