Class: GitLab::List

Inherits:
Object
  • Object
show all
Defined in:
lib/GitLab/list.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#emailObject

Returns the value of attribute email.



2
3
4
# File 'lib/GitLab/list.rb', line 2

def email
  @email
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/GitLab/list.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/GitLab/list.rb', line 2

def name
  @name
end

Class Method Details

.allObject



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_listObject



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_sObject



18
19
# File 'lib/GitLab/list.rb', line 18

def to_s
end