Platoniq/decidim-module-odoo

View on GitHub
lib/decidim/odoo/api.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require_relative "api/base/base_query"
require_relative "api/base/request"
require_relative "api/find_partner"
require_relative "api/find_partner_by_vat"

module Decidim
  module Odoo
    # This namespace holds the logic to connect to the Odoo REST API.
    module Api
      def self.config
        Decidim::Odoo.api
      end

      def self.api_key
        config[:api_key]
      end

      def self.base_url
        config[:base_url]
      end
    end
  end
end