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