Class: Wes::Data::API::Model::Base
- Inherits:
-
Object
- Object
- Wes::Data::API::Model::Base
- Defined in:
- lib/wes/data/api/model/base.rb
Direct Known Subclasses
Billing, Brand, Challenge, ChallengeReward, Collective, Submission, User, Video
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 |