Class: ROM::Github::Resources::Repositories
- Includes:
- UriHelper
- Defined in:
- lib/rom/github/resources/repositories.rb
Instance Method Summary collapse
Methods included from UriHelper
Methods inherited from Base
Instance Method Details
#by_name(name) ⇒ Object
33 34 35 |
# File 'lib/rom/github/resources/repositories.rb', line 33 def by_name(name) append_path(escape_repository_name(name)) end |
#for_org(name) ⇒ Object
21 22 23 |
# File 'lib/rom/github/resources/repositories.rb', line 21 def for_org(name) with_base_path("orgs/#{CGI.escape(name)}/repos") end |
#for_user(name) ⇒ Object
25 26 27 |
# File 'lib/rom/github/resources/repositories.rb', line 25 def for_user(name) with_base_path("users/#{CGI.escape(name)}/repos") end |
#mine ⇒ Object
29 30 31 |
# File 'lib/rom/github/resources/repositories.rb', line 29 def mine with_base_path('user/repos') end |