Class: YandexTracker::Collections::Workflows

Inherits:
Base
  • Object
show all
Defined in:
lib/yandex_tracker/collections/workflows.rb

Overview

Collections::Workflows

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#inspect

Constructor Details

#initialize(client) ⇒ Workflows

Returns a new instance of Workflows.



9
10
11
12
# File 'lib/yandex_tracker/collections/workflows.rb', line 9

def initialize(client)
  super
  @resource = Resources::Workflow.new(client)
end

Instance Method Details

#find(id) ⇒ Object



14
15
16
17
# File 'lib/yandex_tracker/collections/workflows.rb', line 14

def find(id)
  response = resource.find(id)
  build_object(Objects::Workflow, response)
end

#list(**params) ⇒ Object



19
20
21
22
# File 'lib/yandex_tracker/collections/workflows.rb', line 19

def list(**params)
  response = resource.list(**params)
  build_objects(Objects::Workflow, response)
end