lib/revolut/configuration.rb
# Takes url provided from configuration or uses default one.
#
# @return [String] An API Endpoint url which will be used for connection.
Takes url provided from configuration or uses default one.
Takes url provided from configuration or uses default one .
def url
      return @url if @url
      case environment
      when :production
        PRODUCTION_API_ENDPOINT
      when :sandbox
        SANDBOX_API_ENDPOINT
      end
    end
def url return @url if @url case environment when :production PRODUCTION_API_ENDPOINT when :sandbox SANDBOX_API_ENDPOINT end end
Takes url provided from configuration or uses default one.
Takes url provided from configuration or uses default one .
An API Endpoint url which will be used for connection.
An API Endpoint url which will be used for connection .
String