Class: Dropio::Resource
- Inherits:
-
Object
- Object
- Dropio::Resource
- Defined in:
- lib/dropio/resource.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(params = {}) ⇒ Resource
Returns a new instance of Resource.
3 4 5 6 7 |
# File 'lib/dropio/resource.rb', line 3 def initialize(params = {}) params.each do |key,val| self.send("#{key}=", val) if self.respond_to? key end end |