class NpbHeadline::Command

Public Class Methods

start() click to toggle source
# File lib/npb_headline/command.rb, line 4
def start
  params = NpbHeadline::Parameters.new(ARGV)

  headline = NpbHeadline::Base.new(params.team_id)
  headline.articles.each do |h|
    puts "#{h[:title]}(#{h[:publisher]})"
    puts h[:date]
    puts h[:link]
    puts
  end
end