lib/twitter/base.rb in twitter-4.6.1 vs lib/twitter/base.rb in twitter-4.6.2
- old
+ new
@@ -91,16 +91,10 @@
# Retrieve the attributes of an object
#
# @return [Hash]
def attrs
- @attrs.inject({}) do |attrs, (key, value)|
- if value.respond_to?(:attrs)
- attrs.merge!(key => value.attrs)
- else
- attrs.merge!(key => respond_to?(key) ? send(key) : value)
- end
- end
+ @attrs
end
alias to_hash attrs
# Update the attributes of an object
#