Sha256: c4323661e6cf7e5d863a5646e9b77f414773081762e450e0028591060e34b929

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

class DummyModel
  class Decorator < Azeroth::Decorator
    expose :name
    expose :age
    expose :favorite_pokemon, as: :pokemon

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azeroth-0.1.0 spec/dummy/app/models/dummy_model/decorator.rb
azeroth-0.0.7 spec/dummy/app/models/dummy_model/decorator.rb