Class: CloudConnector::ConnectedService

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_connector/connected_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, cut_off_date:) ⇒ ConnectedService

Returns a new instance of ConnectedService.



6
7
8
9
# File 'lib/cloud_connector/connected_service.rb', line 6

def initialize(name:, cut_off_date:)
  @name = name
  @cut_off_date = cut_off_date
end

Instance Attribute Details

#cut_off_dateObject

Returns the value of attribute cut_off_date.



15
16
17
# File 'lib/cloud_connector/connected_service.rb', line 15

def cut_off_date
  @cut_off_date
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/cloud_connector/connected_service.rb', line 15

def name
  @name
end

Instance Method Details

#free_access?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/cloud_connector/connected_service.rb', line 11

def free_access?
  cut_off_date.nil? || cut_off_date&.future?
end