 // MARK: - Generation methods
 
 extension ModuleRoutingAction {
-    var name: String {
+    public var name: String {
         return moduleName
     }
     

// MARK: - ActionInserting

extension ModuleRoutingAction: ActionInserting {
    func copy(byAddingAction action: EnumCase) -> ModuleRoutingAction {
        return ModuleRoutingAction(moduleName: moduleName, actions: actions + [action])
    }
    
    func isMatchingActionToInsert(_ index: SwiftIndexable) -> Bool {
        return index.typeName == .moduleRoutingAction(moduleName: self.moduleName) && index.doesInherit(from: [.moduleAction(moduleName: moduleName)])
    }
}


// MARK: - Module Routing Action

public struct ModuleRoutingAction: ModuleActionGenerating {
    public let objectType: ObjectType = .action
    public let framework = "Core"
    public let moduleName: String
    
    var actions: [EnumCase]
    let defaultActions: [EnumCase] = [EnumCase(name: "Start"),
                                      EnumCase(name: "Stop")]
    
    public init(moduleName: String,
                actions: [EnumCase] = []) {
        self.moduleName = moduleName
        self.actions = actions
    }
