Class: IntellisenseRuby::Response
- Inherits:
-
Object
- Object
- IntellisenseRuby::Response
- Defined in:
- lib/intellisense-ruby/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
12 13 14 15 |
# File 'lib/intellisense-ruby/response.rb', line 12 def initialize(status = 200, error = nil) @status = status @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/intellisense-ruby/response.rb', line 7 def error @error end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/intellisense-ruby/response.rb', line 6 def status @status end |