Class: Vertebrae::Model

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Model

Returns a new instance of Model.



5
6
7
8
9
10
11
# File 'lib/model.rb', line 5

def initialize(attrs = {})
  attrs.each do |key,value|
    if self.respond_to?("#{key}=")
      self.send("#{key}=", value)
    end
  end
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/model.rb', line 3

def client
  @client
end