Class: Vertebrae::Model
- Inherits:
-
Object
- Object
- Vertebrae::Model
- Defined in:
- lib/vertebrae/model.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Model
constructor
A new instance of Model.
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
#client ⇒ Object
Returns the value of attribute client.
5 6 7 |
# File 'lib/vertebrae/model.rb', line 5 def client @client end |