Class: Rmb::Resource

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

Direct Known Subclasses

Asset, Drop, Job, 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/rmb/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/rmb/resource.rb', line 9

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