Class: Vertebrae::Model

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Model

Returns a new instance of Model.



7
8
9
10
11
12
13
# File 'lib/vertebrae/model.rb', line 7

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.



5
6
7
# File 'lib/vertebrae/model.rb', line 5

def client
  @client
end