Class: FakeRest::RequestMapping
- Inherits:
-
Object
- Object
- FakeRest::RequestMapping
- Defined in:
- lib/fakerest/profileloader.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#response_file ⇒ Object
readonly
Returns the value of attribute response_file.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(method, path, status_code, response_file, content_type) ⇒ RequestMapping
constructor
A new instance of RequestMapping.
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_type ⇒ Object (readonly)
Returns the value of attribute content_type.
7 8 9 |
# File 'lib/fakerest/profileloader.rb', line 7 def content_type @content_type end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/fakerest/profileloader.rb', line 7 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/fakerest/profileloader.rb', line 7 def path @path end |
#response_file ⇒ Object (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_code ⇒ Object (readonly)
Returns the value of attribute status_code.
7 8 9 |
# File 'lib/fakerest/profileloader.rb', line 7 def status_code @status_code end |