module AmazonSellerCentral::FeedbackPage::ClassMethods

Public Instance Methods

each_page()
Alias for: load_all_pages
load_all_pages() { |last| ... } click to toggle source
# File lib/amazon_seller_central/feedback_page.rb, line 35
def load_all_pages
  pages = [load_first_page]
  while pages.last.has_next?
    pages << pages.last.next_page
    yield pages.last if block_given?
  end
  pages
end
Also aliased as: each_page
load_first_page() click to toggle source
# File lib/amazon_seller_central/feedback_page.rb, line 27
def load_first_page
  mech = AmazonSellerCentral.mechanizer
  mech.login_to_seller_central
  feedback_home = mech.follow_link_with(:text => "Feedback")
  feedback_page = mech.follow_link_with(:text => "View all your feedback")
  FeedbackPage.new(:page => feedback_page, :agent => mech)
end