COMMANDOES-VIRTUS

A plugin for the commandoes library. This plugin adds Virtus.value_object to your commandoes commands.

PREREQUISITES

  • ruby-2.3.1

INSTALLATION

In your Gemfile

gem 'commandoes-virtus'

EXAMPLES

class FooCommand < Commandoes::IAmACommand
  use Commandoes::Plugins::VirtusPlugin

  values do
    string   :foo
    integer  :bar
    datetime :created_at
  end
end