Class: Woody::Decorators::CreatorUser

Inherits:
Base
  • Object
show all
Defined in:
lib/woody/decorators/creator_user.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #method_missing

Constructor Details

This class inherits a constructor from Woody::Decorators::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Woody::Decorators::Base

Instance Method Details

#full_nameObject



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

def full_name
  [
    @model.first_name,
    @model.last_name
  ].map(&:capitalize).join(" ")
end

#idObject



13
14
15
# File 'lib/woody/decorators/creator_user.rb', line 13

def id
  @model.auth0_id
end