Class: Intacct::Functions::GetApiSession
- Inherits:
-
Object
- Object
- Intacct::Functions::GetApiSession
- Defined in:
- lib/intacct/functions/get_api_session.rb
Instance Method Summary collapse
-
#initialize(location_id: nil) ⇒ GetApiSession
constructor
A new instance of GetApiSession.
- #to_xml ⇒ Object
Constructor Details
#initialize(location_id: nil) ⇒ GetApiSession
Returns a new instance of GetApiSession.
4 5 6 |
# File 'lib/intacct/functions/get_api_session.rb', line 4 def initialize(location_id: nil) @location_id = location_id end |
Instance Method Details
#to_xml ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/intacct/functions/get_api_session.rb', line 8 def to_xml builder = Builder::XmlMarkup.new if @location_id.present? builder.getAPISession do builder.locationid @location_id end else builder.getAPISession end end |