11 lines
215 B
Ruby
11 lines
215 B
Ruby
module Travis::API::V3
|
|
class Queries::Branch < Query
|
|
params :name
|
|
|
|
def find(repository)
|
|
return repository.branch(name) if name
|
|
raise WrongParams, 'missing branch.name'.freeze
|
|
end
|
|
end
|
|
end
|