Class: PivotalAPI::Task

Inherits:
Base
  • Object
show all
Defined in:
lib/pivotal-tracker-api/task.rb

Direct Known Subclasses

Tasks

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

#initialize, #to_json

Constructor Details

This class inherits a constructor from PivotalAPI::Base

Instance Attribute Details

#completeObject

Returns the value of attribute complete.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def complete
  @complete
end

#created_atObject

Returns the value of attribute created_at.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def description
  @description
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def id
  @id
end

#positionObject

Returns the value of attribute position.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def position
  @position
end

#project_idObject

Returns the value of attribute project_id.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def project_id
  @project_id
end

#story_idObject

Returns the value of attribute story_id.



29
30
31
# File 'lib/pivotal-tracker-api/task.rb', line 29

def story_id
  @story_id
end

Class Method Details

.from_json(json) ⇒ Object



31
32
33
34
# File 'lib/pivotal-tracker-api/task.rb', line 31

def self.from_json(json)
  return nil unless json
  parse_task(json)
end