class ScientificProtocols::Resources::Object

Public Instance Methods

inspect() click to toggle source
# File lib/scientificprotocols/resources/object.rb, line 18
def inspect
  "#<#{self.class.name}:#{'0x00%x' % (object_id << 1)} #{inspect_attributes}>"
end

Private Instance Methods

inspect_attributes() click to toggle source
# File lib/scientificprotocols/resources/object.rb, line 24
def inspect_attributes
  attributes.map { |key, value| "@#{key}=#{value.inspect}" }.join(' ')
end