Class: Stripe::Instrumentation::ResponseContext
- Inherits:
 - 
      Object
      
        
- Object
 - Stripe::Instrumentation::ResponseContext
 
 
- Defined in:
 - lib/stripe/instrumentation.rb
 
Instance Attribute Summary collapse
- 
  
    
      #body  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute body.
 - 
  
    
      #header  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute header.
 - 
  
    
      #http_status  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute http_status.
 
Instance Method Summary collapse
- 
  
    
      #initialize(http_status:, response:)  ⇒ ResponseContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ResponseContext.
 
Constructor Details
#initialize(http_status:, response:) ⇒ ResponseContext
Returns a new instance of ResponseContext.
      71 72 73 74 75  | 
    
      # File 'lib/stripe/instrumentation.rb', line 71 def initialize(http_status:, response:) @http_status = http_status @header = response ? response.to_hash : nil @body = response ? response.body : nil end  | 
  
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
      69 70 71  | 
    
      # File 'lib/stripe/instrumentation.rb', line 69 def body @body end  | 
  
#header ⇒ Object (readonly)
Returns the value of attribute header.
      69 70 71  | 
    
      # File 'lib/stripe/instrumentation.rb', line 69 def header @header end  | 
  
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
      69 70 71  | 
    
      # File 'lib/stripe/instrumentation.rb', line 69 def http_status @http_status end  |