Class: Rightmove::Archive
- Inherits:
-
Object
- Object
- Rightmove::Archive
- Defined in:
- lib/rightmove.rb
Instance Attribute Summary collapse
-
#branch_id ⇒ Object
Returns the value of attribute branch_id.
-
#document ⇒ Object
Returns the value of attribute document.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#zip_file ⇒ Object
Returns the value of attribute zip_file.
Instance Method Summary collapse
-
#initialize(file = nil) ⇒ Archive
constructor
A new instance of Archive.
- #open(file) ⇒ Object
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_id ⇒ Object
Returns the value of attribute branch_id.
6 7 8 |
# File 'lib/rightmove.rb', line 6 def branch_id @branch_id end |
#document ⇒ Object
Returns the value of attribute document.
6 7 8 |
# File 'lib/rightmove.rb', line 6 def document @document end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/rightmove.rb', line 6 def @timestamp end |
#zip_file ⇒ Object
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 |