Class: SteelWheel::Params

Inherits:
EasyParams::Base
  • Object
show all
Defined in:
lib/steel_wheel/params.rb

Overview

Base class for params

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.nameObject



6
7
8
# File 'lib/steel_wheel/params.rb', line 6

def self.name
  'SteelWheel::Params'
end

Instance Method Details

#statusObject



10
11
12
13
14
# File 'lib/steel_wheel/params.rb', line 10

def status
  return :ok if errors.empty?

  :bad_request
end