class Traceparts::Category

Attributes

classification_id[R]
description[R]
level[R]
path[R]
path_caption[R]
picture_url[R]
title[R]

Public Class Methods

new(client, data) click to toggle source
# File lib/traceparts/category.rb, line 5
def initialize(client, data)
  @client = client

  @path = data.fetch('path')
  @title = data.fetch('title')
  @path_caption = data.fetch('pathCaption')
  @classification_id = data.fetch('classificationId')
  @picture_url = data.fetch('pictureUrl')
  @level = data.fetch('level')
  @description = data.fetch('description')
end

Public Instance Methods

products() click to toggle source
# File lib/traceparts/category.rb, line 17
def products
  @client.products(classification_id, path)
end