Sha256: 5711a7bedf2fe967d39839101eedbd7cd2c81e791c3a56a0b095927508126ffc
Contents?: true
Size: 1.56 KB
Versions: 2
Compression:
Stored size: 1.56 KB
Contents
module TrackerApi module Resources class Story include Virtus.model attribute :client attribute :accepted_at, DateTime attribute :comment_ids, Array[Integer] attribute :created_at, DateTime attribute :current_state, String # (accepted, delivered, finished, started, rejected, planned, unstarted, unscheduled) attribute :deadline, DateTime attribute :description, String attribute :estimate, Float attribute :external_id, String attribute :follower_ids, Array[Integer] attribute :id, Integer attribute :integration_id, Integer attribute :kind, String attribute :label_ids, Array[Integer] attribute :labels, Array[TrackerApi::Resources::Label] attribute :name, String attribute :owned_by_id, Integer # deprecated! attribute :owners, Array[TrackerApi::Resources::Person] attribute :planned_iteration_number, Integer attribute :project_id, Integer attribute :requested_by_id, Integer attribute :story_type, String # (feature, bug, chore, release) attribute :task_ids, Array[Integer] attribute :tasks, Array[TrackerApi::Resources::Task] attribute :updated_at, DateTime attribute :url, String # @return [String] Comma separated list of labels. def label_list @label_list ||= labels.collect(&:name).join(',') end def tasks(params = {}) if @tasks.any? @tasks else @tasks = Endpoints::Tasks.new(client).get(project_id, id, params) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-0.2.6 | lib/tracker_api/resources/story.rb |
tracker_api-0.2.5 | lib/tracker_api/resources/story.rb |