17 lines
No EOL
269 B
Ruby
17 lines
No EOL
269 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AspectPresenter < BasePresenter
|
|
def initialize(aspect)
|
|
@aspect = aspect
|
|
end
|
|
|
|
def as_json
|
|
{ :id => @aspect.id,
|
|
:name => @aspect.name,
|
|
}
|
|
end
|
|
|
|
def to_json(options = {})
|
|
as_json.to_json(options)
|
|
end
|
|
end |