Class: Basecamp3::Model Abstract
- Inherits:
-
Object
- Object
- Basecamp3::Model
- Defined in:
- lib/basecamp3/model.rb
Overview
This class is abstract.
A base class for models
Direct Known Subclasses
Campfire, CampfireLine, Comment, Document, Forward, Inbox, Message, MessageBoard, MessageType, Person, Project, Question, QuestionAnswer, Questionnaire, Schedule, ScheduleEntry, Todo, TodoList, TodoSet, Vault
Constant Summary
- REQUIRED_FIELDS =
[]
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(data = {}) ⇒ Model
Returns a new instance of Model
7 8 9 10 11 |
# File 'lib/basecamp3/model.rb', line 7 def initialize(data = {}) data.each do |attr, value| instance_variable_set("@#{attr}", value) end end |