Class: SigepWeb::Authenticate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Authenticate

Returns a new instance of Authenticate.



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

def initialize(options = {})
  self.user = options[:user]
  self.password = options[:password]
  self.administrative_code = options[:administrative_code]
  self.contract = options[:contract]
  self.card = options[:card]
end

Instance Attribute Details

#administrative_codeObject

Returns the value of attribute administrative_code.



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

def administrative_code
  @administrative_code
end

#cardObject

Returns the value of attribute card.



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

def card
  @card
end

#contractObject

Returns the value of attribute contract.



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

def contract
  @contract
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end