Method: PLA::Movements#initialize

Defined in:
lib/pla/movements.rb

#initializeMovements

Returns a new instance of Movements.



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/pla/movements.rb', line 18

def initialize
  @url = self.class.url
  @root = 'div.newsMainArea table tr td table tr'  # It gets worse

  @records = []
  @ships = get_ships_data

  set_headers
  set_records

  @records
end