Class: PactBroker::Versions::BranchHead

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/pact_broker/versions/branch_head.rb

Instance Method Summary collapse

Instance Method Details

#before_saveObject



13
14
15
16
17
18
# File 'lib/pact_broker/versions/branch_head.rb', line 13

def before_save
  super
  self.pacticipant_id = branch.pacticipant_id
  self.version_id = branch_version.version_id
  self.branch_name = branch.name
end

#branch_nameObject



20
21
22
# File 'lib/pact_broker/versions/branch_head.rb', line 20

def branch_name
  branch.name
end