Sha256: 5c8fcdd08bfe018a439595898ce530cc2e7f74e08064bda18ba586abbc66442a
Contents?: true
Size: 561 Bytes
Versions: 8
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Imis class Config IMIS_ROOT_URL_PROD = 'https://portal.americasboatingclub.org' IMIS_ROOT_URL_DEV = 'https://abcdev.imiscloud.com' attr_accessor :environment, :imis_id_query_name, :username, :password def initialize yield self if block_given? end def hostname case environment.to_sym when :production IMIS_ROOT_URL_PROD when :development IMIS_ROOT_URL_DEV else raise "Unexpected API environment: #{environment}" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems