Module: Troles::Common::Api::ClassMethods
- Included in:
- Troles::Common::Api
- Defined in:
- lib/troles/common/api/class_methods.rb
Instance Method Summary collapse
Instance Method Details
#apis ⇒ Object
3 4 5 |
# File 'lib/troles/common/api/class_methods.rb', line 3 def apis [:core, :cache, :config, :event, :read, :validation, :write] end |
#included(base) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/troles/common/api/class_methods.rb', line 7 def included(base) apis.each do |api| begin base.include_and_extend :"#{api.to_s.camelize}" rescue end end end |