Sha256: 4d0ac4cdc7af21fcedda907439ad19359bc81b7ab7f8036692e693bb4f30d7fd
Contents?: true
Size: 516 Bytes
Versions: 32
Compression:
Stored size: 516 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 NilLicense.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
32 entries across 32 versions & 1 rubygems