Sha256: 3fb315e21a1c5462ca162425c2eb249bc601e2455fbb77e6152503ddde76afcf

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

class RoutesBuilderController
  def initialize(id: nil, document: nil)
    @id = id
    @document_params = document
  end

  def perform(action)
    @action = action
    send(action)
  end

  private

  attr_reader :id, :document_params, :action

  def render_basic
    {
      json: "#{action}_json"
    }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azeroth-0.0.7 spec/support/app/controllers/routes_builder_controller.rb
azeroth-0.0.6 spec/support/app/controllers/routes_builder_controller.rb
azeroth-0.0.5 spec/support/app/controllers/routes_builder_controller.rb