lib/peddler/marketplace.rb in peddler-1.2.0 vs lib/peddler/marketplace.rb in peddler-1.3.0
- old
+ new
@@ -11,17 +11,17 @@
'A21TJRUUN4KGV' => 'mws.amazonservices.in',
'APJ6JRA9NG5V4' => 'mws-eu.amazonservices.com',
'A1VC38T7YXB528' => 'mws.amazonservices.jp',
'A1AM78C64UM0Y8' => 'mws.amazonservices.com.mx',
'ATVPDKIKX0DER' => 'mws.amazonservices.com'
- }
+ }.freeze
BadId = Class.new(StandardError)
attr_reader :id
def initialize(id)
- @id = id or fail BadId, 'missing MarketplaceId'
+ @id = id || fail(BadId, 'missing MarketplaceId')
end
def host
@host ||= find_host
end