Sha256: 5d04c6b95c057db3bb3421966f4b356c29e61617c3f2813c4ee04c0aa441228d
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
module NpbHeadline class Command class << self 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
npb_headline-0.0.2 | lib/npb_headline/command.rb |
npb_headline-0.0.1 | lib/npb_headline/command.rb |