Module: Avatar::Source::AbstractSource
- Included in:
- FileColumnSource, GravatarSource, NilSource, RailsAssetSource, SourceChain, StaticUrlSource, StringSubstitutionSource
- Defined in:
- lib/avatar/source/abstract_source.rb
Overview
To be included by classes that generate avatar URLs from profiles.
Instance Method Summary collapse
-
#avatar_url_for(person, options = {}) ⇒ Object
Return an avatar URL for the person, or nil if this source cannot generate one.
Instance Method Details
#avatar_url_for(person, options = {}) ⇒ Object
Return an avatar URL for the person, or nil if this source cannot generate one. Including classes must override this method. In general, implementations should return nil if person
is nil.
9 10 11 |
# File 'lib/avatar/source/abstract_source.rb', line 9 def avatar_url_for(person, = {}) raise NotImplementedError.new('including class must define avatar_url_for(person, options = {})') end |