Class: Intacct::AuthenticationMethods::Credentials
- Inherits:
-
Object
- Object
- Intacct::AuthenticationMethods::Credentials
- Defined in:
- lib/intacct/authentication_methods/credentials.rb
Instance Method Summary collapse
-
#initialize(user_id:, company_id:, password:) ⇒ Credentials
constructor
A new instance of Credentials.
- #to_xml ⇒ Object
Constructor Details
#initialize(user_id:, company_id:, password:) ⇒ Credentials
Returns a new instance of Credentials.
8 9 10 11 12 |
# File 'lib/intacct/authentication_methods/credentials.rb', line 8 def initialize(user_id:, company_id:, password:) @user_id = user_id @company_id = company_id @password = password end |
Instance Method Details
#to_xml ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/intacct/authentication_methods/credentials.rb', line 14 def to_xml builder = Builder::XmlMarkup.new builder.login do builder.userid @user_id builder.companyid @company_id builder.password @password end end |