Sha256: 87722889a9704d2a79cd62520b60830dabf26d684572dbe0998f2f2eba7e56be
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
# frozen_string_literal: true require "class2" require "json" # This results in certain properties in the JSON samples/definitions to be parsed as # Time which class2 will see and convert the attribute values to Time require "json/add/time" classes = File.read(File.join(__dir__, "classes.json")) class2 "BigCommerce::ManagementAPI", JSON.parse(classes, :create_additions => true) do def meta @meta end def meta=(meta) @meta = meta end def headers @headers end def headers=(headers) @headers = headers end end require "big_commerce/management_api/customers" require "big_commerce/management_api/inventories" require "big_commerce/management_api/segments" require "big_commerce/management_api/subscribers"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
big_commerce-management_api-0.0.1 | lib/big_commerce/management_api/classes.rb |