Class: Phabulous::Revision

Inherits:
Entity
  • Object
show all
Defined in:
lib/phabulous/revision.rb

Instance Attribute Summary collapse

Attributes inherited from Entity

#phid

Instance Method Summary collapse

Methods inherited from Entity

all, attr_accessor, attributes, #attributes, find, #initialize

Constructor Details

This class inherits a constructor from Phabulous::Entity

Instance Attribute Details

#authorPHIDObject

Returns the value of attribute authorPHID.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def authorPHID
  @authorPHID
end

#dateModifiedObject

Returns the value of attribute dateModified.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def dateModified
  @dateModified
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def id
  @id
end

#lineCountObject

Returns the value of attribute lineCount.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def lineCount
  @lineCount
end

#reviewersObject

Returns the value of attribute reviewers.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def reviewers
  @reviewers
end

#statusNameObject

Returns the value of attribute statusName.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def statusName
  @statusName
end

#summaryObject

Returns the value of attribute summary.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def summary
  @summary
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def title
  @title
end

#uriObject

Returns the value of attribute uri.



5
6
7
# File 'lib/phabulous/revision.rb', line 5

def uri
  @uri
end

Instance Method Details

#authorObject



20
21
22
# File 'lib/phabulous/revision.rb', line 20

def author
  User.find(@authorPHID)
end

#differential_idObject



24
25
26
# File 'lib/phabulous/revision.rb', line 24

def differential_id
  "D#{id}"
end

#statusObject



8
9
10
# File 'lib/phabulous/revision.rb', line 8

def status
  @statusName
end