Class: Pronto::Comment
- Inherits:
-
Struct
- Object
- Struct
- Pronto::Comment
- Defined in:
- lib/pronto/comment.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#path ⇒ Object
Returns the value of attribute path.
-
#position ⇒ Object
Returns the value of attribute position.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/pronto/comment.rb', line 2 def body @body end |
#path ⇒ Object
Returns the value of attribute path
2 3 4 |
# File 'lib/pronto/comment.rb', line 2 def path @path end |
#position ⇒ Object
Returns the value of attribute position
2 3 4 |
# File 'lib/pronto/comment.rb', line 2 def position @position end |
#sha ⇒ Object
Returns the value of attribute sha
2 3 4 |
# File 'lib/pronto/comment.rb', line 2 def sha @sha end |
Instance Method Details
#==(other) ⇒ Object
3 4 5 6 7 |
# File 'lib/pronto/comment.rb', line 3 def ==(other) position == other.position && path == other.path && body == other.body end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/pronto/comment.rb', line 9 def to_s "[#{sha}] #{path}:#{position} - #{body}" end |