Class: PactBroker::Deployments::ReleasedVersion

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/pact_broker/deployments/released_version.rb

Instance Method Summary collapse

Instance Method Details

#currently_supportedObject



60
61
62
# File 'lib/pact_broker/deployments/released_version.rb', line 60

def currently_supported
  support_ended_at == nil
end

#environment_nameObject



68
69
70
# File 'lib/pact_broker/deployments/released_version.rb', line 68

def environment_name
  environment.name
end

#record_support_endedObject



55
56
57
58
# File 'lib/pact_broker/deployments/released_version.rb', line 55

def record_support_ended
  self.class.where(id: id).record_support_ended
  refresh
end

#version_numberObject



64
65
66
# File 'lib/pact_broker/deployments/released_version.rb', line 64

def version_number
  version.number
end