Class: Foxynews::Paging
- Inherits:
-
Object
- Object
- Foxynews::Paging
- Defined in:
- app/services/foxynews/paging.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Paging
constructor
A new instance of Paging.
Constructor Details
#initialize(args) ⇒ Paging
Returns a new instance of Paging.
3 4 5 6 7 8 9 10 11 12 |
# File 'app/services/foxynews/paging.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 |