class Traceparts::Catalog

Attributes

id[R]
picture_url[R]
published[R]
title[R]
type[R]
updated[R]

Public Class Methods

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

  @id = data.fetch('classificationId')
  @title = data.fetch('title')
  @picture_url = data.fetch('pictureUrl')
  @published = data.fetch('published')
  @updated = data.fetch('updated')
  @type = data.fetch('classType')
end

Public Instance Methods

categories() click to toggle source
# File lib/traceparts/catalog.rb, line 20
def categories
  @client.categories(id)
end
products() click to toggle source
# File lib/traceparts/catalog.rb, line 16
def products
  @client.products(id)
end