Class: Magento::Params::CreateCategoria
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Magento::Params::CreateCategoria
- Defined in:
- lib/magento/params/create_category.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/magento/params/create_category.rb', line 11 def to_h { name: name, parent_id: parent_id, is_active: is_active, custom_attributes: url ? [{attribute_code: 'url_key', value: url }] : nil }.compact end |