UNPKG

braintree

Version:

A library for server-side integrating with Braintree.

22 lines (16 loc) 389 B
"use strict"; class AttributeSetter { constructor(attributes) { for (let key in attributes) { if (!attributes.hasOwnProperty(key)) { continue; } let value = attributes[key]; this[key] = value; if (key === "globalId") { this.graphQLId = attributes.globalId; } } } } module.exports = { AttributeSetter: AttributeSetter };