Class: Wes::Data::API::Model::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/wes/data/api/model/base.rb

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *_args, &_block) ⇒ Object (protected)



40
41
42
# File 'lib/wes/data/api/model/base.rb', line 40

def method_missing(sym, *_args, &_block)
  attributes.to_h.fetch(sym, nil)
end