Class: BlazingDocs::BaseModel
- Inherits:
-
Object
- Object
- BlazingDocs::BaseModel
- Defined in:
- lib/blazingdocs/models/base_model.rb
Direct Known Subclasses
AccountModel, FileModel, OperationModel, OperationTypeModel, PlanModel, UsageModel
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ BaseModel
constructor
A new instance of BaseModel.
Constructor Details
#initialize(hash = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
3 4 5 6 7 |
# File 'lib/blazingdocs/models/base_model.rb', line 3 def initialize(hash = {}) hash.each do |option, value| self.send("#{option}=", value) end end |