Class: LittleMapper::Result::RepoResult
- Inherits:
-
Object
- Object
- LittleMapper::Result::RepoResult
- Defined in:
- lib/little_mapper/result/repo_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #after_initialize ⇒ Object
-
#initialize(object = nil) ⇒ RepoResult
constructor
A new instance of RepoResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(object = nil) ⇒ RepoResult
Returns a new instance of RepoResult.
5 6 7 8 9 |
# File 'lib/little_mapper/result/repo_response.rb', line 5 def initialize(object = nil) @messages = [] @object = object after_initialize end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
4 5 6 |
# File 'lib/little_mapper/result/repo_response.rb', line 4 def @messages end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
4 5 6 |
# File 'lib/little_mapper/result/repo_response.rb', line 4 def object @object end |
Instance Method Details
#after_initialize ⇒ Object
11 |
# File 'lib/little_mapper/result/repo_response.rb', line 11 def after_initialize; end |
#success? ⇒ Boolean
10 |
# File 'lib/little_mapper/result/repo_response.rb', line 10 def success?; false; end |