module ContextIO
class Account < Resource
# @api public
# @return [String] The unique ID of the account.
attr_reader :id
# @api public
# @return [String] The username of the account.
attr_reader :username
# [snip]
end
end
Yardstick correctly identifies the username attribute and all other attributes in the class as attributes, and doesn't complain about not having a method summary and examples. However, it seems to think the id attribute is a method and spits out this:
lib/context-io/account.rb:15: ContextIO::Account#id: The method summary should be specified
lib/context-io/account.rb:15: ContextIO::Account#id: The public/semipublic method should have an example specified
Coverage: 99.2% Success: 248 Failed: 2 Total: 250
I have the following class:
Yardstick correctly identifies the
username
attribute and all other attributes in the class as attributes, and doesn't complain about not having a method summary and examples. However, it seems to think theid
attribute is a method and spits out this:I guess this might be because
Object#id
exists?