Sha256: eef17b5b7465e4166df644388c6e41e450d6f148726fb7b914e8a8ed458aa617

Contents?: true

Size: 407 Bytes

Versions: 12

Compression:

Stored size: 407 Bytes

Contents

module GovKit
  module OpenCongress

    class NewsPost < OpenCongressObject
    
      attr_accessor :title, :date, :url, :source_url, :excerpt, :source, :average_rating
    
    
      def initialize(params)
        params.each do |key, value|
          instance_variable_set("@#{key}", value) if NewsPost.instance_methods.include? key
        end      
      end      
      
      
    end
  
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
govkit-0.6.1 lib/gov_kit/open_congress/news_post.rb
govkit-0.6.0 lib/gov_kit/open_congress/news_post.rb
govkit-0.5.1 lib/gov_kit/open_congress/news_post.rb
govkit-0.5.0 lib/gov_kit/open_congress/news_post.rb
govkit-0.4.2 lib/gov_kit/open_congress/news_post.rb
govkit-0.4.1 lib/gov_kit/open_congress/news_post.rb
govkit-0.4.0 lib/gov_kit/open_congress/news_post.rb
govkit-0.3.2 lib/gov_kit/open_congress/news_post.rb
govkit-0.3.1 lib/gov_kit/open_congress/news_post.rb
govkit-0.3.0 lib/gov_kit/open_congress/news_post.rb
govkit-0.2.0 lib/gov_kit/open_congress/news_post.rb
govkit-0.1.0 lib/gov_kit/open_congress/news_post.rb