Class: Dropio::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/dropio/resource.rb

Direct Known Subclasses

Asset, Comment, Drop

Instance Method Summary collapse

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