15 lines
No EOL
238 B
Ruby
15 lines
No EOL
238 B
Ruby
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 |