class Avo::Licensing::LicenseManager
def self.refresh_license(request)
def self.refresh_license(request) new(Licensing::HQ.new(request).fresh_response).license end
def initialize(hq_response)
def initialize(hq_response) @hq_response = hq_response end
def license
def license case @hq_response["id"] when "community" CommunityLicense.new @hq_response when "pro" ProLicense.new @hq_response else NullLicense.new @hq_response end end