Sha256: aeeffd1b2ea64135e89828554217257e67241aaa13b2ad2c49f160f54f3a7876

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module <%= service_name.classify %>::Commands
  class <%= @command %>
    include Virtus.model
    include ActiveModel::Validations
    # You can read Virtus gem doc for more info.
    # https://github.com/solnic/virtus

    # Attributes
    <%- @model_attributes.each do |k,v| -%>
    # attribute :<%=k%>, <%=v%>
    <%- end -%>

    # Validations
    # validates :REPLACE_ME, presence: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
command_service_object-0.5.11 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.10 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.9 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.8 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.7 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.6 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.5 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.2 lib/generators/service/command/templates/command.rb.erb
command_service_object-0.5.1 lib/generators/service/command/templates/command.rb.erb