Sha256: 9b98f318b7757b6a3a21a26fefd712e321d454967c881c462c47ad35322bc908

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

module Troo
  module Decorators
    class Member
      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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/decorators/member.rb