Class: PivotalAPI::Comments
- Defined in:
- lib/pivotal-tracker-api/comment.rb
Instance Attribute Summary
Attributes inherited from Comment
#commit_identifier, #commit_type, #created_at, #epic_id, #file_attachments, #google_attachment_ids, #id, #kind, #person, #project_id, #story_id, #text, #updated_at
Class Method Summary collapse
Methods inherited from Comment
Methods inherited from Base
Constructor Details
This class inherits a constructor from PivotalAPI::Base
Class Method Details
.from_json(json) ⇒ Object
76 77 78 |
# File 'lib/pivotal-tracker-api/comment.rb', line 76 def self.from_json(json) parse_json_comments(json) if json.is_a?(Array) end |
.parse_json_comments(json_comments) ⇒ Object
80 81 82 83 84 |
# File 'lib/pivotal-tracker-api/comment.rb', line 80 def self.parse_json_comments(json_comments) comments = [] json_comments.each { |comment| comments << parse_json_comment(comment) } comments end |