Method: CouchRest::Attributes#inspect
- Defined in:
- lib/couchrest/attributes.rb
#inspect ⇒ Object
Provide details of the current keys in the reponse. Based on ActiveRecord::Base.
78 79 80 81 82 83 |
# File 'lib/couchrest/attributes.rb', line 78 def inspect attributes_as_nice_string = self.keys.collect { |key| "#{key}: #{self[key].inspect}" }.compact.join(", ") "#<#{self.class} #{attributes_as_nice_string}>" end |