Class: InsertData

Inherits:
Notice show all
Defined in:
lib/amajp_crawl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeInsertData

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

#keywordObject

Returns the value of attribute keyword.



47
48
49
# File 'lib/amajp_crawl.rb', line 47

def keyword
  @keyword
end

#last_pageObject

Returns the value of attribute last_page.



47
48
49
# File 'lib/amajp_crawl.rb', line 47

def last_page
  @last_page
end