lib/twitter/base.rb in twitter-5.6.0 vs lib/twitter/base.rb in twitter-5.7.0
- old
+ new
@@ -13,17 +13,9 @@
alias_method :to_h, :attrs
deprecate_alias :to_hash, :to_h
deprecate_alias :to_hsh, :to_h
class << self
- # Construct an object from a response hash
- #
- # @param response [Hash]
- # @return [Twitter::Base]
- def from_response(response = {})
- new(response[:body])
- end
-
# Define methods that retrieve the value from attributes
#
# @param attrs [Array, Symbol]
def attr_reader(*attrs)
attrs.each do |attr|