Exception: Bamboo::Client::InvalidResponseError
- Inherits:
- 
      StandardError
      
        - Object
- StandardError
- Bamboo::Client::InvalidResponseError
 
- Defined in:
- lib/bamboo/client.rb
Instance Attribute Summary collapse
- 
  
    
      #body  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute body. 
- 
  
    
      #code  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute code. 
Instance Method Summary collapse
- 
  
    
      #initialize(response)  ⇒ InvalidResponseError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of InvalidResponseError. 
Constructor Details
#initialize(response) ⇒ InvalidResponseError
Returns a new instance of InvalidResponseError.
| 50 51 52 53 54 | # File 'lib/bamboo/client.rb', line 50 def initialize(response) @code = response.code @body = response.body super("Unexpected response: #{@code}, #{@body}") end | 
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
| 48 49 50 | # File 'lib/bamboo/client.rb', line 48 def body @body end | 
#code ⇒ Object (readonly)
Returns the value of attribute code.
| 48 49 50 | # File 'lib/bamboo/client.rb', line 48 def code @code end |