config.rb
314 Bytes
class Lxd::Config
include ActiveModel::Model
attr_accessor :api, :api_extensions, :api_status, :api_version, :auth,
:config, :environment, :public
def self.get api
return nil unless api
Lxd::Config.new({api: api}.merge api.config)
end
def save
@api.config = @config
end
end
# vim: set ts=2 sw=2: