Class Twitter::Base
In: lib/twitter/base.rb
Parent: Object

Methods

External Aliases

attrs -> to_hash

Attributes

attrs  [R] 

Public Class methods

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]

Initializes a new object

@param attrs [Hash] @return [Twitter::Base]

Stores an object in the identity map.

@param object [Object] @return [Twitter::Base]

Public Instance methods

Fetches an attribute of an object using hash notation

@param method [String, Symbol] Message to send to the object

Update the attributes of an object

@param attrs [Hash] @return [Twitter::Base]

Protected Instance methods

@param attr [Symbol] @param other [Twitter::Base] @return [Boolean]

@param other [Twitter::Base] @return [Boolean]

[Validate]