Class: Woody::Decorators::BrandUser

Inherits:
User
  • Object
show all
Defined in:
lib/woody/decorators/brand_user.rb

Instance Method Summary collapse

Methods inherited from User

#exist?, #first_name, #full_name, #id, #initialize, #last_name, #short_name

Methods inherited from Base

#initialize, #method_missing

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

#avatarObject



6
7
8
9
10
11
12
# File 'lib/woody/decorators/brand_user.rb', line 6

def avatar
  base_path = format(
    '%s/%s/brands/avatars',
    @config.s3_domain, @config.public_s3_bucket,
  )
  format('%s/%s_%s', base_path, id, @model.avatar_guid)
end