Class: AcceptableApi::Response

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

Overview

This needs to mimic as much of the Sinatra API as we use. Probably we want to set headers and content_type, not sure what else.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Response

Returns a new instance of Response.



101
102
103
# File 'lib/acceptable_api.rb', line 101

def initialize options = {}
  self.params = options[:params]
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



100
101
102
# File 'lib/acceptable_api.rb', line 100

def params
  @params
end