Class: RestfulObjects::HttpResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/restful_objects/http_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, content_type, status = 200) ⇒ HttpResponse



5
6
7
8
9
# File 'lib/restful_objects/http_response.rb', line 5

def initialize(body, content_type, status = 200)
  @body = body
  @content_type = content_type
  @status = status
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/restful_objects/http_response.rb', line 3

def body
  @body
end

#content_typeObject

Returns the value of attribute content_type.



3
4
5
# File 'lib/restful_objects/http_response.rb', line 3

def content_type
  @content_type
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/restful_objects/http_response.rb', line 3

def status
  @status
end