Sha256: c8d55886a2630ca10b75eb3425ab170ae0aa5e89a7e60544d3581b022207b301
Contents?: true
Size: 560 Bytes
Versions: 5
Compression:
Stored size: 560 Bytes
Contents
module Troo module Presenters class Member include DecoratorHelpers # @param [Troo::Card] # @param [Hash] # @return [Troo::Presenters::Member] def initialize(card, options = {}) @card, @options = card, options end # @return [String] def show Sentence.construct(members, 'members') end private attr_reader :card, :options def members @members ||= card.members.map do |member| member.decorator.username end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems