Class: Rapid::Baps::Responses::Handlers::Seed

Inherits:
Services::Responses::Handler show all
Defined in:
lib/ury_rapid/baps/responses/handlers/system.rb

Overview

Handler for BAPS responses carrying login seeds.

Instance Method Summary collapse

Methods inherited from Services::Responses::Handler

#initialize, #kill_if_exists

Methods inherited from Services::Handler

def_targets, #initialize, register_into, #targets, targets?, use_poster

Constructor Details

This class inherits a constructor from Rapid::Services::Responses::Handler

Instance Method Details

#runObject


42
43
44
45
46
47
48
49
# File 'lib/ury_rapid/baps/responses/handlers/system.rb', line 42

def run
  username = find('x_baps/server/username').value
  password = find('x_baps/server/password').value
  seed = @response.seed
  # Kurse all SeeDs.  Swarming like lokusts akross generations.
  #   - Sorceress Ultimecia, Final Fantasy VIII
  @parent.(username, password, seed) if seed
end