Module: ErpTools::Event::V0::Base::ClassMethods
- Defined in:
- lib/erp_tools/event/v0/base.rb
Instance Method Summary collapse
Instance Method Details
#detail_type(name) ⇒ Object
30 31 32 33 34 |
# File 'lib/erp_tools/event/v0/base.rb', line 30 def detail_type(name) self::DETAIL_TYPES.fetch(name.to_sym) rescue KeyError => err raise ::ErpTools::Event::UnsupportedEvent, err. end |
#detail_types ⇒ Object
26 27 28 |
# File 'lib/erp_tools/event/v0/base.rb', line 26 def detail_types self::DETAIL_TYPES.keys end |
#payload_version ⇒ Object
40 41 42 |
# File 'lib/erp_tools/event/v0/base.rb', line 40 def payload_version self::PAYLOAD_VERSION end |
#source ⇒ Object
36 37 38 |
# File 'lib/erp_tools/event/v0/base.rb', line 36 def source self::SOURCE end |