-
Notifications
You must be signed in to change notification settings - Fork 9
Macro::Semantic
Vladislav Trotsenko edited this page Sep 26, 2019
·
3 revisions
Provides to set value of semantic marker (semantic_success
or semantic_failure
) into context. Semantic uses for handling http statuses into ApplicationEndpoint
.
class SomeOperation < ApplicationOperation
step Macro::Semantic(success: :ok) # ctx[:semantic_success] = :ok
end
class SomeOperation < ApplicationOperation
fail Macro::Semantic(failure: :not_found) # ctx[:semantic_failure] = :not_found
end
RubyGarage is a leading software development and consulting company in Eastern Europe. Our main expertise includes Ruby and Ruby on Rails, but we successfully employ other technologies to deliver the best results to our clients. Check out our portfolio for even more exciting works!