class Yardi::RequestSection::Authentication
Generate the auth section of a Yardi
request
Attributes
credential[R]
Public Class Methods
new(credential)
click to toggle source
# File lib/yardi/request_section/authentication.rb, line 9 def initialize(credential) @credential = credential end
Public Instance Methods
generate(xml_builder)
click to toggle source
# File lib/yardi/request_section/authentication.rb, line 13 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