Class: SecureNative::HttpResponse
- Inherits:
-
Object
- Object
- SecureNative::HttpResponse
- Defined in:
- lib/securenative/http_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(ok, status_code, body) ⇒ HttpResponse
constructor
A new instance of HttpResponse.
Constructor Details
#initialize(ok, status_code, body) ⇒ HttpResponse
Returns a new instance of HttpResponse.
8 9 10 11 12 |
# File 'lib/securenative/http_response.rb', line 8 def initialize(ok, status_code, body) @ok = ok @status_code = status_code @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/securenative/http_response.rb', line 5 def body @body end |
#ok ⇒ Object
Returns the value of attribute ok.
5 6 7 |
# File 'lib/securenative/http_response.rb', line 5 def ok @ok end |
#status_code ⇒ Object
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/securenative/http_response.rb', line 5 def status_code @status_code end |