From 0193f0f1ef7d8a9cba5aad933ee8df4859f74892 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Fri, 11 Oct 2024 11:16:04 +0200 Subject: [PATCH] Let's try documenting marketplace --- lib/peddler/marketplace.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/peddler/marketplace.rb b/lib/peddler/marketplace.rb index 250b4670..465aff0a 100644 --- a/lib/peddler/marketplace.rb +++ b/lib/peddler/marketplace.rb @@ -29,6 +29,16 @@ module Peddler "JP" => { id: "A1VC38T7YXB528", country_name: "Japan", selling_region: "Far East" }, } + # @!parse + # # Wraps an Amazon marketplace + # # + # # @api public + # # + # # @!attribute [r] id + # # @!attribute [r] country_code + # # @!attribute [r] country_name + # # @!attribute [r] selling_region + # class Peddler::Marketplace < Data; end Marketplace = Data.define(:id, :country_code, :country_name, :selling_region) do class << self # Finds the marketplace for the given country code