Sha256: a1dcb079927785e5b93820181ca5ac67727eba1f85d7b43c37893f5ca02c7324

Contents?: true

Size: 606 Bytes

Versions: 13

Compression:

Stored size: 606 Bytes

Contents

# typed: false
# frozen_string_literal: true

class YettoController < ApplicationController
  include BodyParameter::YettoParameters
  include Hephaestus::ValidatesFromYetto

  before_action :from_yetto?

  def event
    event = params[:event]
    record_type = params[:record_type]

    case event
    when Hephaestus::Headers::EVENT_AFTER_CREATE
      case record_type
      when Hephaestus::Headers::RECORD_TYPE_PLUG_INSTALLATION
        no_content
      when Hephaestus::Headers::RECORD_TYPE_MESSAGE

        no_content
      else
        not_found
      end
    else
      not_found
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hephaestus-0.8.16.1 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.16 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15.5 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15.4 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15.3 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15.2 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15.1 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.15 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.14 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.13 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.12.2 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.12.1 templates/app/controllers/yetto_controller.rb
hephaestus-0.8.12 templates/app/controllers/yetto_controller.rb