Sha256: e59f91798ca350cc249f063b054c2b14f49b589673b9a79aaa79c3f0b4f23b61
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
module Troo class MemberDecorator include DecoratorHelpers def initialize(member, options = {}) @member = member @options = options end def username ["@", member.username].join end def name member.full_name end def initials member.initials end private attr_reader :member end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.7 | lib/troo/display/member_decorator.rb |
troo-0.0.6 | lib/troo/display/member_decorator.rb |
troo-0.0.5 | lib/troo/display/member_decorator.rb |