Class: PostHog::Response Private
- Inherits:
-
Object
- Object
- PostHog::Response
- Defined in:
- lib/posthog/response.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
API response wrapper returned by the SDK transport.
Instance Attribute Summary collapse
- #error ⇒ Object readonly private
- #status ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(status = 200, error = nil) ⇒ Response
constructor
private
A new instance of Response.
Constructor Details
#initialize(status = 200, error = nil) ⇒ Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Response.
12 13 14 15 |
# File 'lib/posthog/response.rb', line 12 def initialize(status = 200, error = nil) @status = status @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/posthog/response.rb', line 8 def error @error end |
#status ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/posthog/response.rb', line 8 def status @status end |