Class: Restapi::MethodDescription::Api
- Inherits:
-
Object
- Object
- Restapi::MethodDescription::Api
- Defined in:
- lib/restapi/method_description.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#short_description ⇒ Object
Returns the value of attribute short_description.
Instance Method Summary collapse
-
#initialize(method, path, desc) ⇒ Api
constructor
A new instance of Api.
Constructor Details
#initialize(method, path, desc) ⇒ Api
Returns a new instance of Api.
10 11 12 13 14 |
# File 'lib/restapi/method_description.rb', line 10 def initialize(method, path, desc) @http_method = method.to_s @api_url = create_api_url(path) @short_description = desc end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
8 9 10 |
# File 'lib/restapi/method_description.rb', line 8 def api_url @api_url end |
#http_method ⇒ Object
Returns the value of attribute http_method.
8 9 10 |
# File 'lib/restapi/method_description.rb', line 8 def http_method @http_method end |
#short_description ⇒ Object
Returns the value of attribute short_description.
8 9 10 |
# File 'lib/restapi/method_description.rb', line 8 def short_description @short_description end |