Class: Yes::Core::Commands::Group::Attributes

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/yes/core/commands/group.rb

Overview

Meta attributes for the Group, compatible with the Command class.

Defined Under Namespace

Classes: Invalid

Class Method Summary collapse

Class Method Details

.new(attributes) ⇒ Object

Parameters:

  • attributes (Hash)

    constructor parameters

Raises:

  • (Invalid)

    if the parameters are invalid



24
25
26
27
28
# File 'lib/yes/core/commands/group.rb', line 24

def self.new(attributes)
  super
rescue Dry::Struct::Error => e
  raise Invalid.new(extra: attributes), e
end