2013-02-05 14:16:51 -05:00
|
|
|
class VersionSerializer < ApplicationSerializer
|
|
|
|
|
2013-03-13 08:38:41 -04:00
|
|
|
attributes :number, :display_username, :created_at
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
def number
|
|
|
|
object[:number]
|
|
|
|
end
|
|
|
|
|
|
|
|
def display_username
|
|
|
|
object[:display_username]
|
|
|
|
end
|
|
|
|
|
|
|
|
def created_at
|
|
|
|
object[:created_at]
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|