Method: ItemBuilder::Modes::Create::TokopediaService#category

Defined in:
lib/item_builder/modes/create/tokopedia_service.rb

#categoryObject



15
16
17
18
19
20
21
# File 'lib/item_builder/modes/create/tokopedia_service.rb', line 15

def category
  {
    id: item_listing&.item_listing_category&.id,
    local_id: item_listing&.item_listing_category&.tokopedia&.local_id,
    name: item_listing&.item_listing_category&.tokopedia&.name
  }
end