Class: CurbFu::Request::Test::Interface

Inherits:
Object
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/curb-fu/request/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, hostname = 'example.org') ⇒ Interface

Returns a new instance of Interface.



146
147
148
149
# File 'lib/curb-fu/request/test.rb', line 146

def initialize(app, hostname = 'example.org')
  self.app = app
  self.hostname = hostname
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



144
145
146
# File 'lib/curb-fu/request/test.rb', line 144

def app
  @app
end

#hostnameObject

Returns the value of attribute hostname.



144
145
146
# File 'lib/curb-fu/request/test.rb', line 144

def hostname
  @hostname
end