Class: Sipatra::HelperMethods::ResponseEnvironment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, response) ⇒ ResponseEnvironment

Returns a new instance of ResponseEnvironment.



170
171
172
# File 'lib/sipatra/helpers.rb', line 170

def initialize(app, response)
  @app, @response = app, response
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



167
168
169
# File 'lib/sipatra/helpers.rb', line 167

def app
  @app
end

#responseObject (readonly) Also known as: message

Returns the value of attribute response.



167
168
169
# File 'lib/sipatra/helpers.rb', line 167

def response
  @response
end