Class: Twitter::DirectMessages::WelcomeMessage

Inherits:
Identity
  • Object
show all
Includes:
Creatable, Entities
Defined in:
lib/twitter/direct_messages/welcome_message.rb

Overview

Represents a Twitter welcome message for direct messages

Instance Attribute Summary collapse

Attributes inherited from Identity

#id

Attributes inherited from Base

#attrs

Method Summary

Methods included from Entities

#entities?, #hashtags, #hashtags?, #media, #media?, #symbols, #symbols?, #uris, #uris?, #user_mentions, #user_mentions?

Methods included from Creatable

#created?, #created_at

Methods inherited from Identity

#initialize

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader

Methods included from Utils

flat_pmap, pmap

Constructor Details

This class inherits a constructor from Twitter::Identity

Instance Attribute Details

#nameString (readonly)

The name of the welcome message

Examples:

welcome_message.name

Returns:

  • (String)


27
28
29
# File 'lib/twitter/direct_messages/welcome_message.rb', line 27

def name
  @name
end

#textString (readonly) Also known as: full_text

The text content of the welcome message

Examples:

welcome_message.text

Returns:

  • (String)


19
20
21
# File 'lib/twitter/direct_messages/welcome_message.rb', line 19

def text
  @text
end