Method: ApiRecord::Base#inspect
- Defined in:
- lib/api_record/base.rb
#inspect ⇒ Object
75 76 77 78 79 |
# File 'lib/api_record/base.rb', line 75 def inspect attributes_to_display = self.class.attribute_names.map(&:to_s) + ['response'] attributes_string = attributes_to_display.map { |attr| "#{attr}: #{send(attr).inspect}" }.join(', ') "#<#{self.class.name} #{attributes_string}>" end |