Sha256: 66ccacbce26f73d73a144b9d57f317d8f779d191effe9dbb16d352860e7afea2

Contents?: true

Size: 316 Bytes

Versions: 14

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

class PokemonMaster
  class Decorator < Azeroth::Decorator
    expose :name
    expose :age
    expose :favorite_pokemon, decorator: Pokemon::FavoriteDecorator
    expose :pokemons

    def name
      [
        first_name,
        last_name
      ].compact.join(' ')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
azeroth-1.0.0 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.10.1 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.10.0 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.9.0 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.8.2 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.8.1 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.8.0 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.7.4 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.7.3 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.7.2 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.7.1 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.7.0 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.6.5 spec/dummy/app/models/pokemon_master/decorator.rb
azeroth-0.6.4 spec/dummy/app/models/pokemon_master/decorator.rb