Class: Rmb::Resource
- Inherits:
-
Object
- Object
- Rmb::Resource
- Defined in:
- lib/rmb/resource.rb
Direct Known Subclasses
Asset, Drop, Job, Subscription
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/rmb/resource.rb', line 3 def initialize(params = {}) params.each do |key,val| self.send("#{key}=", val) if self.respond_to?("#{key}=") end end |