class HecksDomain::Generators::Operation
Attributes
aggregate[R]
aggregate_name[R]
domain[R]
domain_name[R]
domain_object[R]
domain_object_name[R]
operation[R]
operation_name[R]
Public Class Methods
new(args, options)
click to toggle source
Calls superclass method
# File lib/hecks/domain/generators/operation.rb, line 8 def initialize(args, options) @domain = args[0] @aggregate = args[1] @domain_object = args[2] @operation = args[3] @domain_name = @domain.name.to_s.underscore @aggregate_name = @aggregate.name.to_s.underscore @domain_object_name = @domain_object.name.to_s.underscore @operation_name = @operation.name.to_s.underscore super(args, options) end
source_root()
click to toggle source
# File lib/hecks/domain/generators/operation.rb, line 23 def self.source_root File.dirname(__FILE__) + '/../templates' end
Public Instance Methods
write_aggregate_directory()
click to toggle source
# File lib/hecks/domain/generators/operation.rb, line 27 def write_aggregate_directory directory('operation', 'domain') end