Class: Twitter::Identity
Direct Known Subclasses
BasicUser, DirectMessage, DirectMessageEvent, DirectMessages::WelcomeMessage, DirectMessages::WelcomeMessageRule, DirectMessages::WelcomeMessageRuleWrapper, DirectMessages::WelcomeMessageWrapper, List, Media::Photo, Media::Video, Place, SavedSearch, Streaming::DeletedTweet, Tweet
Instance Attribute Summary collapse
- #id ⇒ Integer readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Twitter::Identity
constructor
Initializes a new object.
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, object_attr_reader, predicate_attr_reader, uri_attr_reader
Methods included from Utils
Constructor Details
#initialize(attrs = {}) ⇒ Twitter::Identity
Initializes a new object
15 16 17 18 |
# File 'lib/twitter/identity.rb', line 15 def initialize(attrs = {}) attrs.fetch(:id) super end |
Instance Attribute Details
#id ⇒ Integer (readonly)
8 9 10 |
# File 'lib/twitter/identity.rb', line 8 def id @id end |