Class: PostHog::Response
- Inherits:
- 
      Object
      
        - Object
- PostHog::Response
 
- Defined in:
- lib/posthog/response.rb
Instance Attribute Summary collapse
- 
  
    
      #error  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute error. 
- 
  
    
      #status  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute status. 
Instance Method Summary collapse
- 
  
    
      #initialize(status = 200, error = nil)  ⇒ Response 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    public: Simple class to wrap responses from the API. 
Constructor Details
#initialize(status = 200, error = nil) ⇒ Response
public: Simple class to wrap responses from the API
| 8 9 10 11 | # File 'lib/posthog/response.rb', line 8 def initialize(status = 200, error = nil) @status = status @error = error end | 
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
| 3 4 5 | # File 'lib/posthog/response.rb', line 3 def error @error end | 
#status ⇒ Object (readonly)
Returns the value of attribute status.
| 3 4 5 | # File 'lib/posthog/response.rb', line 3 def status @status end |