* Invalid acct is an error. not "2 errors".
* Empty input should be different error from invalid acct
attr_accessor :acct, :addressable_template
+ validates :acct, presence: true
+
def initialize(attrs = {})
@acct = attrs[:acct].gsub(/\A@/, '').strip unless attrs[:acct].nil?
end
def valid?
+ return false unless super
+
populate_template
errors.empty?
end
def acct_resource
@_acct_resource ||= Goldfinger.finger("acct:#{acct}")
rescue Goldfinger::Error
- missing_resource_error
nil
end