lib/opencongress/news_post.rb in opencongress-opencongress-ruby-0.0.4 vs lib/opencongress/news_post.rb in opencongress-opencongress-ruby-0.1.2

- old
+ new

@@ -1,18 +1,18 @@ module OpenCongress - class NewsPost < OpenCongressObject + class OCNewsPost < 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 + instance_variable_set("@#{key}", value) if OCNewsPost.instance_methods.include? key end end end -end \ No newline at end of file +end