Sha256: a8c911387160ef0ffaeba32e18240b5fdf519dfe414e44d62b0d80bf4519c735

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

require 'ostruct'

module Jamnagar
  module Materials
    class Item < Ore
      def raw_source
        host = to_h['final_url_host'] || "nosource.jamnagar.co"
        {"id" => host}
      end
    end
    module Twitter
      class Item < Jamnagar::Materials::Item
        def raw_contributor
          to_h["raw"]["user"]
        end
      end
    end
    module RSS
      class Item < Jamnagar::Materials::Item
        def raw_contributor
          to_h["raw"]["author"]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jamnagar-1.3.9.1 lib/jamnagar/materials/item.rb
jamnagar-1.3.9 lib/jamnagar/materials/item.rb