class Blix::Rest::Response

Attributes

content[RW]
headers[R]
status[RW]

Public Class Methods

new() click to toggle source
# File lib/blix/rest/response.rb, line 13
def initialize
  @status  = 200
  @headers  = {}
  @content = nil
end

Public Instance Methods

set(status,content=nil,headers=nil) click to toggle source
# File lib/blix/rest/response.rb, line 19
def set(status,content=nil,headers=nil)
  @status = status if status
  @content = String.new(content) if content
  @headers.merge!(headers) if headers
end