Class: Foxynews::Clipping
- Inherits:
-
Object
- Object
- Foxynews::Clipping
- Defined in:
- app/services/foxynews/clipping.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Clipping
constructor
A new instance of Clipping.
Constructor Details
#initialize(args) ⇒ Clipping
Returns a new instance of Clipping.
3 4 5 6 7 8 9 10 11 12 |
# File 'app/services/foxynews/clipping.rb', line 3 def initialize(args) if args.is_a? Hash args.each do |name, value| instance_variable_set("@#{name}", value) self.class.send(:attr_accessor, name) end else false end end |