class CrudInspector::Tracker

Public Class Methods

new(options = {}) click to toggle source
# File lib/crud_inspector.rb, line 12
def initialize(options = {})
  @options = options
end

Public Instance Methods

track() click to toggle source
# File lib/crud_inspector.rb, line 16
def track
  return unless ::Rails.env.development?
  case @options[:type]
  when :rest
    ::CrudInspector::Files::Manager.new(@options.merge!(type: :rest)).perform
  when :soap
    ::CrudInspector::Files::Manager.new(@options.merge!(type: :soap)).perform
  else
    "no type given"
  end
end