Sha256: 3f947710bc618bf61dc2d1b287497449f3e49df447a2edd3b03162f4b88c46e9

Contents?: true

Size: 453 Bytes

Versions: 10

Compression:

Stored size: 453 Bytes

Contents

class Apipie::Generator::Swagger::MethodDescription::Decorator < SimpleDelegator
  # @return [String]
  def operation_id
    "#{object.resource.controller.name}__#{object.method_name}"
  end

  # @return [String]
  def ruby_name
    if object.blank?
      '<no method>'
    else
      "#{object.resource.controller.name}##{object.method_name}"
    end
  end

  private

  # @return [Apipie::MethodDescription, nil]
  def object
    __getobj__
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
apipie-rails-1.4.2 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.4.1 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.4.0 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.3.0 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.2.3 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.2.2 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.2.1 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.2.0 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.1.0 lib/apipie/generator/swagger/method_description/decorator.rb
apipie-rails-1.0.0 lib/apipie/generator/swagger/method_description/decorator.rb