Files
gitlabhq/lib/cloud_connector/connected_service.rb
2024-02-19 18:08:56 +00:00

18 lines
363 B
Ruby

# frozen_string_literal: true
# Presents a service enabled through Cloud Connector
module CloudConnector
class ConnectedService
def initialize(name:, cut_off_date:)
@name = name
@cut_off_date = cut_off_date
end
def free_access?
cut_off_date.nil? || cut_off_date&.future?
end
attr_accessor :name, :cut_off_date
end
end