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.22.1 lib/avo/licensing/license_manager.rb
avo-1.22.1.pre.2 lib/avo/licensing/license_manager.rb
avo-1.22.1.pre.1 lib/avo/licensing/license_manager.rb
avo-1.22.0 lib/avo/licensing/license_manager.rb
avo-1.22.0.pre.1 lib/avo/licensing/license_manager.rb
avo-1.21.1.pre.1 lib/avo/licensing/license_manager.rb
avo-1.21.0 lib/avo/licensing/license_manager.rb
avo-1.20.2.pre.2 lib/avo/licensing/license_manager.rb
avo-1.20.2.pre.1 lib/avo/licensing/license_manager.rb
avo-1.21.0.pre.1 lib/avo/licensing/license_manager.rb
avo-1.20.1 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.11 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.10 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.9 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.8 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.7 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.6 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.5 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.4 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.3 lib/avo/licensing/license_manager.rb