Module: NextStation::Errors::SharedErrorsDSL

Defined in:
lib/next_station/errors.rb

Instance Method Summary collapse

Instance Method Details

#definitionsObject



16
17
18
# File 'lib/next_station/errors.rb', line 16

def definitions
  @dsl&.definitions || {}
end

#error_type(type, &block) ⇒ Object



11
12
13
14
# File 'lib/next_station/errors.rb', line 11

def error_type(type, &block)
  @dsl ||= NextStation::Operation::ErrorsDSL.new
  @dsl.error_type(type, &block)
end