Method: Ghub::Models::Branch.for

Defined in:
lib/ghub/models/branch.rb

.for(**attributes) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/ghub/models/branch.rb', line 7

def self.for(**attributes)
  new(
    **attributes.merge!(
      user: User[**attributes[:user]],
      repo: Repository.for(**attributes[:repo])
    )
  )
end