Sha256: e893965d7a7196f46482b9c757651f7ed76edccd2b49f7aff39402b1e8759cb5

Contents?: true

Size: 403 Bytes

Versions: 105

Compression:

Stored size: 403 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
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
avo-1.13.3 lib/avo/licensing/license_manager.rb
avo-1.13.2 lib/avo/licensing/license_manager.rb
avo-1.13.1 lib/avo/licensing/license_manager.rb
avo-1.13.0 lib/avo/licensing/license_manager.rb
avo-1.12.4 lib/avo/licensing/license_manager.rb
avo-1.12.3 lib/avo/licensing/license_manager.rb
avo-1.12.2 lib/avo/licensing/license_manager.rb
avo-1.12.1 lib/avo/licensing/license_manager.rb
avo-1.12.0 lib/avo/licensing/license_manager.rb
avo-1.11.6 lib/avo/licensing/license_manager.rb
avo-1.11.5 lib/avo/licensing/license_manager.rb
avo-1.11.4 lib/avo/licensing/license_manager.rb
avo-1.11.3 lib/avo/licensing/license_manager.rb
avo-1.11.2 lib/avo/licensing/license_manager.rb
avo-1.11.1 lib/avo/licensing/license_manager.rb
avo-1.10.3 lib/avo/licensing/license_manager.rb
avo-1.11.0 lib/avo/licensing/license_manager.rb
avo-1.10.2 lib/avo/licensing/license_manager.rb
avo-1.10.1 lib/avo/licensing/license_manager.rb
avo-1.10.0 lib/avo/licensing/license_manager.rb