Class: InsertData
Instance Attribute Summary collapse
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#last_page ⇒ Object
Returns the value of attribute last_page.
Instance Method Summary collapse
-
#initialize ⇒ InsertData
constructor
A new instance of InsertData.
Methods inherited from Notice
#complete, #complete_get_asin, #error, #insert_keyword, #insert_last_page, #insert_to_csv, #loading, #nil_keyword, #not_availability_last_page
Constructor Details
#initialize ⇒ InsertData
Returns a new instance of InsertData.
49 50 51 52 53 54 |
# File 'lib/amajp_crawl.rb', line 49 def initialize puts insert_keyword @keyword = gets.chomp.to_s puts insert_last_page @last_page = gets.chomp.to_i end |
Instance Attribute Details
#keyword ⇒ Object
Returns the value of attribute keyword.
47 48 49 |
# File 'lib/amajp_crawl.rb', line 47 def keyword @keyword end |
#last_page ⇒ Object
Returns the value of attribute last_page.
47 48 49 |
# File 'lib/amajp_crawl.rb', line 47 def last_page @last_page end |