Class: YandexTracker::Objects::Queue

Inherits:
Base
  • Object
show all
Defined in:
lib/yandex_tracker/objects/queue.rb

Overview

Objects::Queue

Instance Attribute Summary

Attributes inherited from Base

#client, #context, #data

Instance Method Summary collapse

Methods inherited from Base

#expand, #id, #initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from YandexTracker::Objects::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class YandexTracker::Objects::Base

Instance Method Details

#issuesObject



9
10
11
# File 'lib/yandex_tracker/objects/queue.rb', line 9

def issues
  @issues ||= Collections::Issues.new(client, id)
end

#local_fieldsObject



18
19
20
# File 'lib/yandex_tracker/objects/queue.rb', line 18

def local_fields
  @local_fields ||= Collections::LocalFields.new(client, id)
end

#update(**attributes) ⇒ Object



13
14
15
16
# File 'lib/yandex_tracker/objects/queue.rb', line 13

def update(**attributes)
  response = resource.update(id, attributes)
  refresh_from(response)
end