lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.109.0

- old
+ new

@@ -8,16 +8,16 @@ # use the API username and password you were issued separately. class IridiumGateway < Gateway self.live_url = self.test_url = 'https://gw1.iridiumcorp.net/' # The countries the gateway supports merchants from as 2 digit ISO country codes - self.supported_countries = ['GB', 'ES'] + self.supported_countries = %w[GB ES] self.default_currency = 'EUR' self.money_format = :cents # The card types supported by the payment gateway - self.supported_cardtypes = [:visa, :master, :american_express, :discover, :maestro, :jcb, :diners_club] + self.supported_cardtypes = %i[visa master american_express discover maestro jcb diners_club] # The homepage URL of the gateway self.homepage_url = 'http://www.iridiumcorp.co.uk/' # The name of the gateway @@ -286,10 +286,10 @@ end end def build_reference_request(type, money, authorization, options) options[:action] = 'CrossReferenceTransaction' - order_id, cross_reference, _ = authorization.split(';') + order_id, cross_reference, = authorization.split(';') build_request(options) do |xml| if money currency = options[:currency] || currency(money) details = {'CurrencyCode' => currency_code(currency), 'Amount' => localized_amount(money, currency)} else