Sha256: ef067adc19b231a479f8f2ce2d1eff312df5b6f94d81ee16d60a2738930d4711

Contents?: true

Size: 596 Bytes

Versions: 8

Compression:

Stored size: 596 Bytes

Contents

# typed: false
# frozen_string_literal: true

class YettoController < ApplicationController
  include BodyParameter::YettoParameters
  include PathParameter::YettoParameters
  include Authable

  include Headers::Yetto

  before_action :from_yetto?

  def event
    case pparam_yetto_event
    when Headers::Yetto::EVENT_AFTER_CREATE
      case pparam_yetto_record_type
      when Headers::Yetto::RECORD_TYPE_PLUG_INSTALLATION

        no_content
      when Headers::Yetto::RECORD_TYPE_MESSAGE

        no_content
      else
        not_found
      end
    else
      not_found
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hephaestus-0.3.1 templates/app/controllers/yetto_controller.rb
hephaestus-0.2.3 templates/app/controllers/yetto_controller.rb
hephaestus-0.2.2 templates/app/controllers/yetto_controller.rb
hephaestus-0.1.3 templates/app/controllers/yetto_controller.rb
hephaestus-0.1.2 templates/app/controllers/yetto_controller.rb
hephaestus-0.1.1 templates/app/controllers/yetto_controller.rb
hephaestus-0.0.2 templates/app/controllers/yetto_controller.rb
hephaestus-0.0.1 templates/app/controllers/yetto_controller.rb