Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cli options for --trace & criteria mistach
- Loading branch information
1 parent
ce2b13f
commit 7d3bec7
Showing
8 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class BendMaps | ||
|
||
URI = 'http://www.bendmaps.com/dialvolpage.php?vol_page=' | ||
|
||
attr_accessor :browser | ||
|
||
def initialize | ||
setup_browser | ||
end | ||
|
||
def setup_browser | ||
@browser = Mechanize.new | ||
@browser.max_history = 10 | ||
end | ||
|
||
def retrieve_address(volpage) | ||
@browser.get(URI + volpage) | ||
response = save_dial_record(@browser.page.body, volpage) | ||
end | ||
|
||
def save_dial_record(body, volpage) | ||
unless body.nil? | ||
DialRecord.create( | ||
:volpage => volpage, | ||
#:address => TODOARDDRESS <--- | ||
:account_number => mortgage.instrument_id) unless DialRecord.exists?(:volpage => mortgage.id) | ||
end | ||
end | ||
|
||
def parse_response | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#setup root path | ||
Dir.chdir "#{File.dirname(__FILE__)}" | ||
|
||
# setup file of required files | ||
require 'required.rb' | ||
|
||
bendmaps = Bendmaps.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
|
||
require 'required.rb' | ||
|
||
converter = Convert.new | ||
converter.run | ||
#run the converter | ||
Convert.new.run | ||
|
This file was deleted.
Oops, something went wrong.