Class: LittleMapper::Result::RepoResult

Inherits:
Object
  • Object
show all
Defined in:
lib/little_mapper/result/repo_response.rb

Direct Known Subclasses

RepoFailure, RepoSuccess

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messagesObject (readonly)

Returns the value of attribute messages.



4
5
6
# File 'lib/little_mapper/result/repo_response.rb', line 4

def messages
  @messages
end

#objectObject (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_initializeObject



11
# File 'lib/little_mapper/result/repo_response.rb', line 11

def after_initialize; end

#success?Boolean

Returns:

  • (Boolean)


10
# File 'lib/little_mapper/result/repo_response.rb', line 10

def success?; false; end