Class: SigepWeb::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sigep_web/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#administrative_codeObject

Returns the value of attribute administrative_code.



3
4
5
# File 'lib/sigep_web/configuration.rb', line 3

def administrative_code
  @administrative_code
end

#cardObject

Returns the value of attribute card.



3
4
5
# File 'lib/sigep_web/configuration.rb', line 3

def card
  @card
end

#contractObject

Returns the value of attribute contract.



3
4
5
# File 'lib/sigep_web/configuration.rb', line 3

def contract
  @contract
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/sigep_web/configuration.rb', line 3

def password
  @password
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/sigep_web/configuration.rb', line 3

def user
  @user
end

Instance Method Details

#authenticateObject



6
7
8
9
10
11
12
13
# File 'lib/sigep_web/configuration.rb', line 6

def authenticate
  @authenticate ||=
    Authenticate.new(
      user: user, password: password,
      administrative_code: administrative_code,
      contract: contract, card: card
    )
end