Class: EvilEvents::Shared::Structure

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/evil_events/shared/structure.rb

Overview

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

._native_attributeObject

Since:

  • 0.1.0


12
# File 'lib/evil_events/shared/structure.rb', line 12

alias_method :_native_attribute, :attribute

.attribute(key, type = EvilEvents::Shared::Types::Any) ⇒ Object

Parameters:

  • key (Symbol)
  • type (EvilEvents::Shared::Types::Any) (defaults to: EvilEvents::Shared::Types::Any)

Since:

  • 0.1.0


18
19
20
# File 'lib/evil_events/shared/structure.rb', line 18

def attribute(key, type = EvilEvents::Shared::Types::Any)
  _native_attribute(key, type)
end