Class: Avmtrf1::Esosti::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/esosti/session.rb,
lib/avmtrf1/esosti/session/login.rb,
lib/avmtrf1/esosti/session/atividades.rb,
lib/avmtrf1/esosti/session/action_base.rb,
lib/avmtrf1/esosti/session/solicitacao.rb,
lib/avmtrf1/esosti/session/solicitacao/main.rb

Defined Under Namespace

Modules: Atividades Classes: ActionBase, Login, Solicitacao

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, user, password, user_uf) ⇒ Session

Returns a new instance of Session.


14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/avmtrf1/esosti/session.rb', line 14

def initialize(url, user, password, user_uf)
  raise 'Argument "url" is blank' if url.blank?
  raise 'Argument "user" is blank' if user.blank?
  raise 'Argument "password" is blank' if password.blank?
  raise 'Argument "user_uf" is blank' if user_uf.blank?

  @url = url
  @user = user
  @password = password
  @uf = user_uf
  @session = ::Aranha::Selenium::Session.new
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.


12
13
14
# File 'lib/avmtrf1/esosti/session.rb', line 12

def password
  @password
end

#sessionObject (readonly)

Returns the value of attribute session.


12
13
14
# File 'lib/avmtrf1/esosti/session.rb', line 12

def session
  @session
end

#ufObject (readonly)

Returns the value of attribute uf.


12
13
14
# File 'lib/avmtrf1/esosti/session.rb', line 12

def uf
  @uf
end

#urlObject (readonly)

Returns the value of attribute url.


12
13
14
# File 'lib/avmtrf1/esosti/session.rb', line 12

def url
  @url
end

#userObject (readonly)

Returns the value of attribute user.


12
13
14
# File 'lib/avmtrf1/esosti/session.rb', line 12

def user
  @user
end

Instance Method Details

#loginObject


27
28
29
# File 'lib/avmtrf1/esosti/session.rb', line 27

def 
  ::Avmtrf1::Esosti::Session::Login.new(self)
end

#solicitacao_get_data(solitacao_id) ⇒ Object


31
32
33
# File 'lib/avmtrf1/esosti/session.rb', line 31

def solicitacao_get_data(solitacao_id)
  ::Avmtrf1::Esosti::Session::Solicitacao.new(self, solitacao_id).data
end