Class: Woody::Decorators::CreatorUser
- Defined in:
- lib/woody/decorators/creator_user.rb
Instance Method Summary collapse
Methods inherited from User
#exist?, #first_name, #full_name, #id, #initialize, #last_name
Methods inherited from Base
Constructor Details
This class inherits a constructor from Woody::Decorators::User
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Woody::Decorators::Base
Instance Method Details
#avatar ⇒ Object
6 7 8 |
# File 'lib/woody/decorators/creator_user.rb', line 6 def avatar super("creator") end |
#location ⇒ Object
10 11 12 |
# File 'lib/woody/decorators/creator_user.rb', line 10 def location @model.location.capitalize end |
#portfolio_url ⇒ Object
14 15 16 |
# File 'lib/woody/decorators/creator_user.rb', line 14 def portfolio_url format("/u/%s", @model.portfolio_username) end |