Module: CapsuleCRM::Inspector
- Included in:
- Address, Attachment, Case, Country, Currency, CustomField, Email, History, Milestone, Opportunity, Participant, Party, Phone, Tag, Task, TaskCategory, Track, User, Website
- Defined in:
- lib/capsule_crm/inspector.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/capsule_crm/inspector.rb', line 3 def inspect string = "#<#{self.class.name}:#{self.object_id} " fields = self.class.attribute_set.map do |field| "#{field.name}: #{self.send(field.name)}" end string << fields.join(", ") << ">" end |