Class: PivotalAPI::Activity

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

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

#changesObject

Returns the value of attribute changes.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def changes
  @changes
end

#guidObject

Returns the value of attribute guid.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def guid
  @guid
end

#highlightObject

Returns the value of attribute highlight.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def highlight
  @highlight
end

#kindObject

Returns the value of attribute kind.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def kind
  @kind
end

#messageObject

Returns the value of attribute message.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def message
  @message
end

#occurred_atObject

Returns the value of attribute occurred_at.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def occurred_at
  @occurred_at
end

#performed_byObject

Returns the value of attribute performed_by.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def performed_by
  @performed_by
end

#performed_by_idObject

Returns the value of attribute performed_by_id.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def performed_by_id
  @performed_by_id
end

#primary_resourcesObject

Returns the value of attribute primary_resources.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def primary_resources
  @primary_resources
end

#project_idObject

Returns the value of attribute project_id.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def project_id
  @project_id
end

#project_versionObject

Returns the value of attribute project_version.



35
36
37
# File 'lib/pivotal-tracker-api/activity.rb', line 35

def project_version
  @project_version
end

Class Method Details

.from_json(json) ⇒ Object



39
40
41
# File 'lib/pivotal-tracker-api/activity.rb', line 39

def self.from_json(json)
  parse_json_activity(json) if json.is_a?(Array)
end