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