mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +08:00
12 lines
241 B
Ruby
12 lines
241 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Serializers::Project < Serializers::Base
|
|
def self.serialize_internal(p, options = {})
|
|
{
|
|
id: p.ubid,
|
|
name: p.name,
|
|
credit: p.credit.to_f,
|
|
discount: p.discount
|
|
}
|
|
end
|
|
end
|