Class: Vx::ServiceConnector::GitlabV6::Repos
- Inherits:
-
Struct
- Object
- Struct
- Vx::ServiceConnector::GitlabV6::Repos
- Defined in:
- lib/vx/service_connector/gitlab_v6/repos.rb
Instance Attribute Summary collapse
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#session ⇒ Object
Returns the value of attribute session
4 5 6 |
# File 'lib/vx/service_connector/gitlab_v6/repos.rb', line 4 def session @session end |
Instance Method Details
#to_a ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/vx/service_connector/gitlab_v6/repos.rb', line 6 def to_a begin session.get("/projects", per_page: 30).map do |proj| proj_to_model proj end rescue RequestError [] end end |