Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ServiceObject
- def initialize(params)
- @params params
- end
- def main
- validate_method_one? and validate_method_two? ? create_record : false
- end
- private
- def validate_method_one?
- end
- def validate_method_two?
- end
- def create_record
- SomeRecord.create(...)
- end
- end
- Sign up for free
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement