Class: CloudConnector::ConnectedService
- Inherits:
-
Object
- Object
- CloudConnector::ConnectedService
- Defined in:
- lib/cloud_connector/connected_service.rb
Instance Attribute Summary collapse
-
#cut_off_date ⇒ Object
Returns the value of attribute cut_off_date.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #free_access? ⇒ Boolean
-
#initialize(name:, cut_off_date:) ⇒ ConnectedService
constructor
A new instance of ConnectedService.
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_date ⇒ Object
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 |
#name ⇒ Object
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
11 12 13 |
# File 'lib/cloud_connector/connected_service.rb', line 11 def free_access? cut_off_date.nil? || cut_off_date&.future? end |