Module: LearnWeb::Client::ValidateRepo
- Included in:
- LearnWeb::Client
- Defined in:
- lib/learn_web/client/validate_repo.rb,
lib/learn_web/client/validate_repo/slug.rb
Defined Under Namespace
Classes: Slug
Instance Method Summary collapse
Instance Method Details
#validate_repo_slug(repo_slug:) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/learn_web/client/validate_repo.rb', line 10 def validate_repo_slug(repo_slug:) response = post( validate_repo_slug_endpoint, headers: { 'Authorization' => "Bearer #{token}" }, params: { 'repo_slug' => repo_slug } ) LearnWeb::Client::ValidateRepo::Slug.new(response) end |
#validate_repo_slug_endpoint ⇒ Object
6 7 8 |
# File 'lib/learn_web/client/validate_repo.rb', line 6 def validate_repo_slug_endpoint "#{API_ROOT}/repo_slug_validations" end |