Class: RuboCop::Schema::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/schema/value_objects.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



6
7
8
# File 'lib/rubocop/schema/value_objects.rb', line 6

def message
  @message
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/rubocop/schema/value_objects.rb', line 6

def type
  @type
end

Class Method Details

.dispatch(**kwargs) {|new(**kwargs)| ... } ⇒ Object

Yields:

  • (new(**kwargs))


7
8
9
# File 'lib/rubocop/schema/value_objects.rb', line 7

def self.dispatch(**kwargs)
  yield new(**kwargs) if block_given?
end