Class: Rightmove::Archive

Inherits:
Object
  • Object
show all
Defined in:
lib/rightmove.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file = nil) ⇒ Archive

Returns a new instance of Archive.



8
9
10
# File 'lib/rightmove.rb', line 8

def initialize(file = nil)
	open(file) unless file.nil?
end

Instance Attribute Details

#branch_idObject

Returns the value of attribute branch_id.



6
7
8
# File 'lib/rightmove.rb', line 6

def branch_id
  @branch_id
end

#documentObject

Returns the value of attribute document.



6
7
8
# File 'lib/rightmove.rb', line 6

def document
  @document
end

#timestampObject

Returns the value of attribute timestamp.



6
7
8
# File 'lib/rightmove.rb', line 6

def timestamp
  @timestamp
end

#zip_fileObject

Returns the value of attribute zip_file.



6
7
8
# File 'lib/rightmove.rb', line 6

def zip_file
  @zip_file
end

Instance Method Details

#open(file) ⇒ Object



12
13
14
15
# File 'lib/rightmove.rb', line 12

def open(file)
	self.zip_file = file
	read
end