Sha256: dc8d8b2dc5f240de3ca01a80727e074bcaa71c8a8a0dbe3181930172e353a4c7

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

require "tinynews/version"
require 'tinynews/feeds'
require 'tinynews/cli_printer'
require 'tinynews/json_exporter'

module TinyNews

  def self.get_feed feed_symbol
    Feeds.new.generate( feed_symbol )
  end

  def self.feed_as_json feed_symbol
    JSONExporter.export( get_feed(feed_symbol) )
  end

  def self.print_to_cli feed_symbol
    CLIPrinter.print( get_feed(feed_symbol) )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tinynews-1.0.1 lib/tinynews.rb
tinynews-1.0.0 lib/tinynews.rb