Class: Subset

Subset(dataopt)

Represents a subset item. A subset item can have more than one matching entry due to alternate parts.

Constructor

new Subset(dataopt)

Create an instance of a subset item.
Parameters:
Name Type Attributes Description
data object <optional>
The response data from API request.
Properties
Name Type Attributes Description
match_no number <optional>
The number of matching entries or 0 if there is no matching of alternative item.
entries object <optional>
The specific entries for the subset item.
Source:

Classes

Subset

Members

entries :Array.<SubsetEntry>

Type:
Source:

match_no :number

Type:
  • number
Source:

Methods

(static) get(itemType, itemNumber, options)

Method to get a subset of a catalog item. Usage: ``` var req = Subset.get(ItemType.Set, '6020-1', {break_minifigs: true}); client.send(req).then(subset => console.log(subset)); ```
Parameters:
Name Type Description
itemType string Catalog item type
itemNumber string Catalog item number
options object Options that conform to SubsetOptions.
Source: