Class: Avmtrf1::Esosti::Session
- Inherits:
-
Object
- Object
- Avmtrf1::Esosti::Session
- 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
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
-
#uf ⇒ Object
readonly
Returns the value of attribute uf.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(url, user, password, user_uf) ⇒ Session
constructor
A new instance of Session.
- #login ⇒ Object
- #solicitacao_get_data(solitacao_id) ⇒ Object
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
#password ⇒ Object (readonly)
Returns the value of attribute password.
12 13 14 |
# File 'lib/avmtrf1/esosti/session.rb', line 12 def password @password end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
12 13 14 |
# File 'lib/avmtrf1/esosti/session.rb', line 12 def session @session end |
#uf ⇒ Object (readonly)
Returns the value of attribute uf.
12 13 14 |
# File 'lib/avmtrf1/esosti/session.rb', line 12 def uf @uf end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
12 13 14 |
# File 'lib/avmtrf1/esosti/session.rb', line 12 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
12 13 14 |
# File 'lib/avmtrf1/esosti/session.rb', line 12 def user @user end |