Class: Apipie::Generator::Swagger::MethodDescription::Decorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/apipie/generator/swagger/method_description/decorator.rb

Instance Method Summary collapse

Instance Method Details

#operation_idString

Returns:

  • (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_nameString

Returns:

  • (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