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.9.1 lib/avo/licensing/license_manager.rb
avo-1.9.0 lib/avo/licensing/license_manager.rb
avo-1.8.4 lib/avo/licensing/license_manager.rb
avo-1.8.3 lib/avo/licensing/license_manager.rb
avo-1.8.2 lib/avo/licensing/license_manager.rb
avo-1.8.1 lib/avo/licensing/license_manager.rb
avo-1.8.0 lib/avo/licensing/license_manager.rb
avo-1.7.3 lib/avo/licensing/license_manager.rb
avo-1.7.3.pre.1 lib/avo/licensing/license_manager.rb
avo-1.7.2 lib/avo/licensing/license_manager.rb
avo-1.7.1 lib/avo/licensing/license_manager.rb
avo-1.7.0 lib/avo/licensing/license_manager.rb
avo-1.6.4.pre.1 lib/avo/licensing/license_manager.rb
avo-1.6.3.pre.3 lib/avo/licensing/license_manager.rb
avo-1.6.3.pre.2 lib/avo/licensing/license_manager.rb
avo-1.6.3.pre.1 lib/avo/licensing/license_manager.rb
avo-1.6.2.pre.1 lib/avo/licensing/license_manager.rb
avo-1.6.1 lib/avo/licensing/license_manager.rb
avo-1.6.0 lib/avo/licensing/license_manager.rb
avo-1.5.5 lib/avo/licensing/license_manager.rb