Module: Her::Model::Introspection
- Defined in:
- lib/marvel/her_introspection.rb
Instance Method Summary collapse
-
#inspect ⇒ Object
Monkey patch this method to use attributes instead of send.
Instance Method Details
#inspect ⇒ Object
Monkey patch this method to use attributes instead of send
5 6 7 8 9 10 11 12 13 |
# File 'lib/marvel/her_introspection.rb', line 5 def inspect resource_path = begin request_path rescue Her::Errors::PathError => e "<unknown path, missing `#{e.missing_parameter}`>" end "#<#{self.class}(#{resource_path}) #{attributes.keys.map { |k| "#{k}=#{attribute_for_inspect(attributes[k])}" }.join(" ")}>" end |