Class: YandexTracker::Collections::Resolutions
- Defined in:
- lib/yandex_tracker/collections/resolutions.rb
Overview
Collections::Resolutions
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(client) ⇒ Resolutions
constructor
A new instance of Resolutions.
- #list(**params) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(client) ⇒ Resolutions
Returns a new instance of Resolutions.
9 10 11 12 |
# File 'lib/yandex_tracker/collections/resolutions.rb', line 9 def initialize(client) super @resource = Resources::Resolution.new(client) end |
Instance Method Details
#find(id) ⇒ Object
14 15 16 17 |
# File 'lib/yandex_tracker/collections/resolutions.rb', line 14 def find(id) response = resource.find(id) build_object(Objects::Resolution, response) end |
#list(**params) ⇒ Object
19 20 21 22 |
# File 'lib/yandex_tracker/collections/resolutions.rb', line 19 def list(**params) response = resource.list(**params) build_objects(Objects::Resolution, response) end |