Module: MuffinMan

Defined in:
lib/muffin_man.rb,
lib/muffin_man/version.rb,
lib/muffin_man/orders/v0.rb,
lib/muffin_man/finances/v0.rb,
lib/muffin_man/awd/v20240509.rb,
lib/muffin_man/enable_logger.rb,
lib/muffin_man/sp_api_client.rb,
lib/muffin_man/feeds/v20210630.rb,
lib/muffin_man/product_fees/v0.rb,
lib/muffin_man/authorization/v1.rb,
lib/muffin_man/fba_inventory/v1.rb,
lib/muffin_man/notifications/v1.rb,
lib/muffin_man/solicitations/v1.rb,
lib/muffin_man/tokens/v20210301.rb,
lib/muffin_man/vendor_orders/v1.rb,
lib/muffin_man/reports/v20210630.rb,
lib/muffin_man/finances/v20240619.rb,
lib/muffin_man/listings/v20200901.rb,
lib/muffin_man/listings/v20210801.rb,
lib/muffin_man/product_pricing/v0.rb,
lib/muffin_man/vendor_invoices/v1.rb,
lib/muffin_man/vendor_shipments/v1.rb,
lib/muffin_man/data_kiosk/v20231115.rb,
lib/muffin_man/request_helpers/base.rb,
lib/muffin_man/catalog_items/base_api.rb,
lib/muffin_man/fulfillment_inbound/v0.rb,
lib/muffin_man/fulfillment_inbound/v1.rb,
lib/muffin_man/catalog_items/v20201201.rb,
lib/muffin_man/catalog_items/v20220401.rb,
lib/muffin_man/merchant_fulfillment/v0.rb,
lib/muffin_man/customer_feedback/v20240601.rb,
lib/muffin_man/vendor_transaction_status/v1.rb,
lib/muffin_man/fulfillment_inbound/v20240320.rb,
lib/muffin_man/fulfillment_outbound/v20200701.rb,
lib/muffin_man/listings_restrictions/v20210801.rb,
lib/muffin_man/vendor_direct_fulfillment_payments/v1.rb,
lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb,
lib/muffin_man/request_helpers/outbound_fulfillment/item.rb,
lib/muffin_man/vendor_direct_fulfillment_orders/v20211228.rb,
lib/muffin_man/request_helpers/outbound_fulfillment/address.rb,
lib/muffin_man/vendor_direct_fulfillment_shipping/v20211228.rb,
lib/muffin_man/request_helpers/outbound_fulfillment/v20200701.rb,
lib/muffin_man/vendor_direct_fulfillment_transactions/v20211228.rb,
lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb,
lib/muffin_man/request_helpers/outbound_fulfillment/fulfillment_order_request.rb,
lib/muffin_man/request_helpers/outbound_fulfillment/fulfillment_preview_request.rb

Defined Under Namespace

Modules: Authorization, Awd, CatalogItems, CustomerFeedback, DataKiosk, EnableLogger, FbaInventory, Feeds, Finances, FulfillmentInbound, FulfillmentOutbound, Listings, ListingsRestrictions, Lwa, MerchantFulfillment, Notifications, Orders, ProductFees, ProductPricing, Reports, RequestHelpers, Solicitations, Tokens, VendorDirectFulfillmentInventory, VendorDirectFulfillmentOrders, VendorDirectFulfillmentPayments, VendorDirectFulfillmentShipping, VendorDirectFulfillmentTransactions, VendorInvoices, VendorOrders, VendorShipments, VendorTransactionStatus Classes: Configuration, Error, SpApiAuthError, SpApiClient

Constant Summary collapse

VERSION =
"2.4.8"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



53
54
55
# File 'lib/muffin_man.rb', line 53

def configuration
  @configuration
end

.loggerObject

Returns the value of attribute logger.



53
54
55
# File 'lib/muffin_man.rb', line 53

def logger
  @logger
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



56
57
58
59
60
# File 'lib/muffin_man.rb', line 56

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
  self.logger = configuration.logger if configuration.logger
end