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.19.1.pre.2 lib/avo/licensing/license_manager.rb
avo-1.19.1.pre.1 lib/avo/licensing/license_manager.rb
avo-1.19.0 lib/avo/licensing/license_manager.rb
avo-1.18.2 lib/avo/licensing/license_manager.rb
avo-1.18.2.pre.0 lib/avo/licensing/license_manager.rb
avo-1.18.1 lib/avo/licensing/license_manager.rb
avo-1.18.0 lib/avo/licensing/license_manager.rb
avo-1.18.0.pre.3 lib/avo/licensing/license_manager.rb
avo-1.18.0.pre.2 lib/avo/licensing/license_manager.rb
avo-1.18.0.pre.1 lib/avo/licensing/license_manager.rb
avo-1.17.1 lib/avo/licensing/license_manager.rb
avo-1.17.0 lib/avo/licensing/license_manager.rb
avo-1.16.4 lib/avo/licensing/license_manager.rb
avo-1.16.3 lib/avo/licensing/license_manager.rb
avo-1.16.2 lib/avo/licensing/license_manager.rb
avo-1.16.1 lib/avo/licensing/license_manager.rb
avo-1.16.0 lib/avo/licensing/license_manager.rb
avo-1.15.0 lib/avo/licensing/license_manager.rb
avo-1.15.0.pre.1 lib/avo/licensing/license_manager.rb
avo-1.14.0 lib/avo/licensing/license_manager.rb