Class: Apipie::Generator::Swagger::MethodDescription::Decorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Apipie::Generator::Swagger::MethodDescription::Decorator
- Defined in:
- lib/apipie/generator/swagger/method_description/decorator.rb
Instance Method Summary collapse
Instance Method Details
#operation_id ⇒ String
3 4 5 |
# File 'lib/apipie/generator/swagger/method_description/decorator.rb', line 3 def operation_id "#{object.resource.controller.name}__#{object.method_name}" end |
#ruby_name ⇒ String
8 9 10 11 12 13 14 |
# File 'lib/apipie/generator/swagger/method_description/decorator.rb', line 8 def ruby_name if object.blank? '<no method>' else "#{object.resource.controller.name}##{object.method_name}" end end |