Class: PactBroker::Domain::Version
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- PactBroker::Domain::Version
- Defined in:
- lib/pact_broker/domain/version.rb
Direct Known Subclasses
Instance Method Summary collapse
- #after_create ⇒ Object
-
#latest_pact_publication ⇒ Object
What about provider??? This makes no sense.
- #to_s ⇒ Object
- #version_and_updated_date ⇒ Object
Instance Method Details
#after_create ⇒ Object
20 21 22 |
# File 'lib/pact_broker/domain/version.rb', line 20 def after_create OrderVersions.(self) end |
#latest_pact_publication ⇒ Object
What about provider??? This makes no sense
33 34 35 |
# File 'lib/pact_broker/domain/version.rb', line 33 def latest_pact_publication pact_publications.last end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/pact_broker/domain/version.rb', line 24 def to_s "Version: number=#{number}, pacticipant=#{pacticipant_id}" end |
#version_and_updated_date ⇒ Object
28 29 30 |
# File 'lib/pact_broker/domain/version.rb', line 28 def version_and_updated_date "Version #{number} - #{updated_at.to_time.localtime.strftime("%d/%m/%Y")}" end |