Class | Twitter::Base |
In: |
lib/twitter/base.rb
|
Parent: | Object |
attrs | -> | to_hash |
attrs | [R] |
Define methods that retrieve the value from an initialized instance variable Hash, using the attribute as a key
@overload self.attr_reader(attr)
@param attr [Symbol]
@overload self.attr_reader(attrs)
@param attrs [Array<Symbol>]
Retrieves an object from the identity map.
@param attrs [Hash] @return [Twitter::Base]
Retrieves an object from the identity map, or stores it in the identity map if it doesn‘t already exist.
@param attrs [Hash] @return [Twitter::Base]
Returns a new object based on the response hash
@param response [Hash] @return [Twitter::Base]
Fetches an attribute of an object using hash notation
@param method [String, Symbol] Message to send to the object