Class: Amsi::RequestSection::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/amsi/request_section/auth.rb

Overview

Generate the auth elements of an AMSI request

Instance Method Summary collapse

Constructor Details

#initialize(user_id:, password:, portfolio_name:) ⇒ Auth

Returns a new instance of Auth.



5
6
7
8
9
# File 'lib/amsi/request_section/auth.rb', line 5

def initialize(user_id:, password:, portfolio_name:)
  @user_id = user_id
  @password = password
  @portfolio_name = portfolio_name
end

Instance Method Details

#generate(xml_builder) ⇒ Object



11
12
13
14
15
# File 'lib/amsi/request_section/auth.rb', line 11

def generate(xml_builder)
  xml_builder.UserID user_id
  xml_builder.Password password
  xml_builder.PortfolioName portfolio_name
end