Exception: ActiveRemote::RemoteRecordNotSaved
- Inherits:
- 
      ActiveRemoteError
      
        - Object
- StandardError
- ActiveRemoteError
- ActiveRemote::RemoteRecordNotSaved
 
- Defined in:
- lib/active_remote/errors.rb
Overview
Raised by ActiveRemove::Base.save! and ActiveRemote::Base.create! methods when remote record cannot be saved because it is invalid.
Instance Attribute Summary collapse
- 
  
    
      #record  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute record. 
Instance Method Summary collapse
- 
  
    
      #initialize(message_or_record = nil)  ⇒ RemoteRecordNotSaved 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RemoteRecordNotSaved. 
Constructor Details
#initialize(message_or_record = nil) ⇒ RemoteRecordNotSaved
Returns a new instance of RemoteRecordNotSaved.
| 48 49 50 51 52 53 54 55 | # File 'lib/active_remote/errors.rb', line 48 def initialize( = nil) = if .is_a?(::ActiveRemote::Base) @record = = @record.errors..join(", ") end super() end | 
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
| 46 47 48 | # File 'lib/active_remote/errors.rb', line 46 def record @record end |