Class: Dropio::Resource

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

Direct Known Subclasses

Asset, Comment, Drop, Subscription

Class Method Summary collapse

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

Class Method Details

.clientObject



9
10
11
# File 'lib/dropio/resource.rb', line 9

def self.client
  @@client ||= Dropio::Client.new
end