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

Methods

Included Modules

Memoizable Twitter::Utils

External Aliases

attrs -> to_h
to_h -> to_hash

Attributes

attrs  [R]  @return [Hash]

Public Class methods

Define methods that retrieve the value from attributes

@param attrs [Array, Symbol]

Dynamically define a method for an attribute

@param key1 [Symbol] @param klass [Symbol] @param key2 [Symbol]

Dynamically define a predicate method for an attribute

@param key1 [Symbol] @param key2 [Symbol]

Dynamically define a method for a URI

@param key1 [Symbol] @param key2 [Symbol]

Define display_uri attribute methods

Initializes a new object

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

Define object methods from attributes

@param klass [Symbol] @param key1 [Symbol] @param key2 [Symbol]

Define URI methods from attributes

@param attrs [Array, Symbol]

Public Instance methods

Fetches an attribute of an object using hash notation

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

[Validate]