Module: RestMyCase
- Defined in:
- lib/rest_my_case.rb,
lib/rest_my_case/base.rb,
lib/rest_my_case/status.rb,
lib/rest_my_case/helpers.rb,
lib/rest_my_case/version.rb,
lib/rest_my_case/validator.rb,
lib/rest_my_case/judge/base.rb,
lib/rest_my_case/trial/case.rb,
lib/rest_my_case/config/base.rb,
lib/rest_my_case/errors/base.rb,
lib/rest_my_case/errors/skip.rb,
lib/rest_my_case/http_status.rb,
lib/rest_my_case/trial/court.rb,
lib/rest_my_case/context/base.rb,
lib/rest_my_case/errors/abort.rb,
lib/rest_my_case/config/general.rb,
lib/rest_my_case/context/status.rb,
lib/rest_my_case/context/errors/base.rb,
lib/rest_my_case/context/http_status.rb,
lib/rest_my_case/context/errors/status.rb,
lib/rest_my_case/defense_attorney/base.rb,
lib/rest_my_case/accusation_attorneys/base.rb,
lib/rest_my_case/accusation_attorneys/each.rb,
lib/rest_my_case/accusation_attorneys/custom.rb,
lib/rest_my_case/accusation_attorneys/errors.rb,
lib/rest_my_case/accusation_attorneys/format.rb,
lib/rest_my_case/accusation_attorneys/length.rb,
lib/rest_my_case/accusation_attorneys/presence.rb,
lib/rest_my_case/accusation_attorneys/numericality.rb,
lib/rest_my_case/accusation_attorneys/helper_methods.rb
Defined Under Namespace
Modules: AccusationAttorneys, Config, Context, DefenseAttorney, Errors, Helpers, HttpStatus, Judge, Status, Trial
Classes: Base, Validator
Constant Summary
collapse
- VERSION =
'1.10.1'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
39
40
41
|
# File 'lib/rest_my_case.rb', line 39
def self.config
@config ||= Config::General.new
end
|
35
36
37
|
# File 'lib/rest_my_case.rb', line 35
def self.configure
yield config
end
|
.get_config(attribute, use_case) ⇒ Object
47
48
49
|
# File 'lib/rest_my_case.rb', line 47
def self.get_config(attribute, use_case)
config.get(attribute, use_case)
end
|
.reset_config ⇒ Object
43
44
45
|
# File 'lib/rest_my_case.rb', line 43
def self.reset_config
@config = Config::General.new
end
|