Sha256: 7c856a1b909a0aa2b6583f73b14d1d52325b259e1bbf5e13de4e7be44ee28cc7
Contents?: true
Size: 476 Bytes
Versions: 1
Compression:
Stored size: 476 Bytes
Contents
require 'active_attr' module Dovico class Project < Assignment attribute :tasks def self.all projects_search = ApiClient.get(URL_PATH) projects = projects_search["Assignments"].map {|project_hash| parse(project_hash) } projects.each do |project| tasks_search = ApiClient.get("#{URL_PATH}#{project.assignement_id}") project.tasks = tasks_search["Assignments"].map {|task_hash| Task.parse(task_hash) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dovico-1.0.0 | lib/dovico/model/project.rb |