Class: FakeRest::RequestMapping

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, path, status_code, response_file, content_type) ⇒ RequestMapping

Returns a new instance of RequestMapping.



8
9
10
11
12
13
14
# File 'lib/fakerest/profileloader.rb', line 8

def initialize(method, path, status_code, response_file, content_type)
  @method = method
  @path = path
  @status_code = status_code
  @response_file = response_file
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



7
8
9
# File 'lib/fakerest/profileloader.rb', line 7

def content_type
  @content_type
end

#methodObject (readonly)

Returns the value of attribute method.



7
8
9
# File 'lib/fakerest/profileloader.rb', line 7

def method
  @method
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/fakerest/profileloader.rb', line 7

def path
  @path
end

#response_fileObject (readonly)

Returns the value of attribute response_file.



7
8
9
# File 'lib/fakerest/profileloader.rb', line 7

def response_file
  @response_file
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



7
8
9
# File 'lib/fakerest/profileloader.rb', line 7

def status_code
  @status_code
end