Class: GitLab::List
- Inherits:
-
Object
- Object
- GitLab::List
- Defined in:
- lib/GitLab/list.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ List
constructor
A new instance of List.
- #to_s ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ List
Returns a new instance of List.
4 5 6 |
# File 'lib/GitLab/list.rb', line 4 def initialize(params = {}) @name = params[:name] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'lib/GitLab/list.rb', line 2 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/GitLab/list.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/GitLab/list.rb', line 2 def name @name end |
Class Method Details
.all ⇒ Object
11 12 13 14 15 16 |
# File 'lib/GitLab/list.rb', line 11 def self.all board_id = GitLab.request_get("projects/#{$GITLAB_PROJECT_ID}/boards")[0]["id"] rescue nil if board_id return GitLab.request_get("projects/#{$GITLAB_PROJECT_ID}/boards/#{board_id}/lists") end end |
.get_next_release_list ⇒ Object
8 9 |
# File 'lib/GitLab/list.rb', line 8 def self.get_next_release_list self.all.select{|list| list["label"]["name"] == $GITLAB_NEXT_RELEASE_LIST} end |
Instance Method Details
#to_s ⇒ Object
18 19 |
# File 'lib/GitLab/list.rb', line 18 def to_s end |