Class: Saddler::Reporter::Github::Comment

Inherits:
Struct
  • Object
show all
Defined in:
lib/saddler/reporter/github/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



4
5
6
# File 'lib/saddler/reporter/github/comment.rb', line 4

def body
  @body
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/saddler/reporter/github/comment.rb', line 4

def path
  @path
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



4
5
6
# File 'lib/saddler/reporter/github/comment.rb', line 4

def position
  @position
end

#shaObject

Returns the value of attribute sha

Returns:

  • (Object)

    the current value of sha



4
5
6
# File 'lib/saddler/reporter/github/comment.rb', line 4

def sha
  @sha
end

Instance Method Details

#==(other) ⇒ Object



5
6
7
8
9
# File 'lib/saddler/reporter/github/comment.rb', line 5

def ==(other)
  position == other.position &&
  path == other.path &&
  body == other.body
end