Module: Magento::ModelParser
- Included in:
- Comment, CustomAttribute, Model, SearchCriterium
- Defined in:
- lib/magento/model_mapper.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
58 59 60 |
# File 'lib/magento/model_mapper.rb', line 58 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#to_h ⇒ Object
62 63 64 |
# File 'lib/magento/model_mapper.rb', line 62 def to_h ModelMapper.to_hash(self) end |