lib/tracker_api/resources/project.rb in tracker_api-0.1.0 vs lib/tracker_api/resources/project.rb in tracker_api-0.2.0
- old
+ new
@@ -9,10 +9,11 @@
attribute :account_id, Integer
attribute :atom_enabled, Boolean
attribute :bugs_and_chores_are_estimatable, Boolean
attribute :created_at, DateTime
attribute :current_iteration_number, Integer
+ attribute :current_velocity, Integer
attribute :description, String
attribute :enable_following, Boolean
attribute :enable_incoming_emails, Boolean
attribute :enable_planned_mode, Boolean
attribute :enable_tasks, Boolean
@@ -37,19 +38,24 @@
attribute :updated_at, DateTime
attribute :velocity_averaged_over, Integer
attribute :version, Integer
attribute :week_start_day, String
+ # @return [String] Comma separated list of labels.
+ def label_list
+ @label_list ||= labels.collect(&:name).join(',')
+ end
+
# @return [Array[Epic]] epics associated with this project
def epics(params={})
raise ArgumentError, 'Expected @epics to be an Array' unless @epics.is_a? Array
return @epics unless @epics.empty?
@epics = Endpoints::Epics.new(client).get(id, params)
end
# @param [Hash] params
- # @option params [String] :scope ('') Restricts the state of iterations to return.
+ # @option params [String] :scope Restricts the state of iterations to return.
# If not specified, it defaults to all iterations including done.
# Valid enumeration values: done, current, backlog, current_backlog.
# @option params [Integer] :offset The offset of first iteration to return, relative to the
# set of iterations specified by 'scope', with zero being the first iteration in the scope.
# @option params [Integer] :limit The number of iterations to return relative to the offset.