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.25.2 lib/avo/licensing/license_manager.rb
avo-2.3.1.pre.1 lib/avo/licensing/license_manager.rb
avo-2.3.0 lib/avo/licensing/license_manager.rb
avo-2.2.2 lib/avo/licensing/license_manager.rb
avo-2.2.1 lib/avo/licensing/license_manager.rb
avo-2.2.0 lib/avo/licensing/license_manager.rb
avo-2.1.2.pre2 lib/avo/licensing/license_manager.rb
avo-2.1.2.pre1 lib/avo/licensing/license_manager.rb
avo-1.25.1 lib/avo/licensing/license_manager.rb
avo-2.1.1 lib/avo/licensing/license_manager.rb
avo-2.1.0 lib/avo/licensing/license_manager.rb
avo-2.0.0 lib/avo/licensing/license_manager.rb
avo-1.25.0 lib/avo/licensing/license_manager.rb
avo-1.24.2 lib/avo/licensing/license_manager.rb
avo-1.24.1 lib/avo/licensing/license_manager.rb
avo-1.24.0 lib/avo/licensing/license_manager.rb
avo-1.23.0 lib/avo/licensing/license_manager.rb
avo-1.22.4 lib/avo/licensing/license_manager.rb
avo-1.22.3 lib/avo/licensing/license_manager.rb
avo-1.22.2 lib/avo/licensing/license_manager.rb