class ProsperWorks::Base

Attributes

date_created[RW]
id[RW]

Public Class Methods

client() click to toggle source
# File lib/prosperworks/base.rb, line 8
def self.client
  ProsperWorks.client
end
new(attributes = {}) click to toggle source
# File lib/prosperworks/base.rb, line 12
def initialize(attributes = {})
  set_attributes(attributes)
end

Public Instance Methods

set_attributes(attributes) click to toggle source
# File lib/prosperworks/base.rb, line 16
def set_attributes(attributes)
  attributes.each do |key, value|
    if self.respond_to?(key.to_sym)
      self.send("#{key}=", value)
    end
  end
end