Sha256: 73445df3f01acf3597ecdd57e86b627cb9e7ee2e6b1fb203cb43b91052c755d4

Contents?: true

Size: 728 Bytes

Versions: 7

Compression:

Stored size: 728 Bytes

Contents

require 'yardi/request_section'

module Yardi
  module RequestSection
    # Generate the auth section of a Yardi request
    class Authentication
      attr_reader :credential

      def initialize(credential)
        @credential = credential
      end

      def generate(xml_builder)
        xml_builder['itf'].UserName credential.username
        xml_builder['itf'].Password credential.password
        xml_builder['itf'].ServerName credential.server
        xml_builder['itf'].Database credential.database
        xml_builder['itf'].Platform Yardi.config.platform
        xml_builder['itf'].InterfaceEntity Yardi.config.entity
        xml_builder['itf'].InterfaceLicense Yardi.config.license_key
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
yardi-4.11.4 lib/yardi/request_section/authentication.rb
yardi-4.11.3 lib/yardi/request_section/authentication.rb
yardi-5.0.1 lib/yardi/request_section/authentication.rb
yardi-4.11.2 lib/yardi/request_section/authentication.rb
yardi-4.11.1 lib/yardi/request_section/authentication.rb
yardi-4.11.0 lib/yardi/request_section/authentication.rb
yardi-4.0.8 lib/yardi/request_section/authentication.rb