Class: Dobby::UpdateResponse
- Inherits:
-
Object
- Object
- Dobby::UpdateResponse
- Defined in:
- lib/dobby/update_response.rb
Overview
A generic response format.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #changed? ⇒ Boolean
-
#initialize(changed, content = nil) ⇒ UpdateResponse
constructor
A new instance of UpdateResponse.
Constructor Details
#initialize(changed, content = nil) ⇒ UpdateResponse
Returns a new instance of UpdateResponse.
9 10 11 12 |
# File 'lib/dobby/update_response.rb', line 9 def initialize(changed, content = nil) @changed = changed @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/dobby/update_response.rb', line 6 def content @content end |
Instance Method Details
#changed? ⇒ Boolean
15 16 17 |
# File 'lib/dobby/update_response.rb', line 15 def changed? @changed == true end |