Sha256: 2a19a8c29cd713951ebf6d56bd44fa13c8bf49d66adaa70171fcbd54513f4d85
Contents?: true
Size: 517 Bytes
Versions: 96
Compression:
Stored size: 517 Bytes
Contents
module Avo module Licensing class LicenseManager def initialize(hq_response) @hq_response = hq_response end 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 def self.refresh_license(request) new(Licensing::HQ.new(request).fresh_response).license end end end end
Version data entries
96 entries across 96 versions & 1 rubygems