From 67903c37bb9473098cbf835dde51746a59fc1d08 Mon Sep 17 00:00:00 2001 From: Harry Lewis Date: Wed, 31 Jan 2024 21:17:01 -0500 Subject: [PATCH] Introduce new Bambora::Credentials class --- lib/bambora/client.rb | 1 + lib/bambora/credentials.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 lib/bambora/credentials.rb diff --git a/lib/bambora/client.rb b/lib/bambora/client.rb index d6d7587..0f269a2 100644 --- a/lib/bambora/client.rb +++ b/lib/bambora/client.rb @@ -12,6 +12,7 @@ require 'multiparty' # Multipart/mixed requests require 'bambora/client/version' +require 'bambora/credentials' # Adapters require 'bambora/adapters/response' diff --git a/lib/bambora/credentials.rb b/lib/bambora/credentials.rb new file mode 100644 index 0000000..2082263 --- /dev/null +++ b/lib/bambora/credentials.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Bambora + class Credentials + attr_reader :merchant_id, :reporting_passcode + + def initialize(options = {}) + @merchant_id = options[:merchant_id] + @reporting_passcode = options[:reporting_passcode] + end + end +end