Method: Geet::Github::Label.list
- Defined in:
- lib/geet/github/label.rb
.list(api_interface) ⇒ Object
Returns a flat list of names in string form.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/geet/github/label.rb', line 14 def self.list(api_interface, **) api_path = 'labels' response = api_interface.send_request(api_path, multipage: true) response.map do |label_entry| name = label_entry.fetch('name') color = label_entry.fetch('color') new(name, color) end end |