fluke/devops-service/db/mongo/models/provider_accounts/static_provider_account.rb
2015-11-02 11:42:20 +03:00

19 lines
358 B
Ruby

require "db/mongo/models/provider_accounts/provider_account"
module Devops
module Model
class StaticProviderAccount < ProviderAccount
def self.build_from_bson a
a["account_name"] = a["_id"]
StaticProviderAccount.new a
end
def self.account_fields
ProviderAccount::ACCOUNT_FIELDS
end
end
end
end