Exception: Kentaa::Api::RequestError
- Defined in:
- lib/kentaa/api/exception.rb
Instance Attribute Summary collapse
- 
  
    
      #response  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute response. 
Instance Method Summary collapse
- #http_code ⇒ Object
- 
  
    
      #initialize(response)  ⇒ RequestError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RequestError. 
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
| 11 12 13 14 15 | # File 'lib/kentaa/api/exception.rb', line 11 def initialize(response) @response = response super(response.) end | 
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
| 9 10 11 | # File 'lib/kentaa/api/exception.rb', line 9 def response @response end | 
Instance Method Details
#http_code ⇒ Object
| 17 18 19 | # File 'lib/kentaa/api/exception.rb', line 17 def http_code response.http_code end |