Skip to content

Commit

Permalink
280
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Nov 8, 2017
1 parent d795175 commit 2912a67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions lib/twitter/rest/direct_messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module DirectMessages
# @option options [Integer] :max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 200.
# @option options [Integer] :page Specifies the page of results to retrieve.
# @option options [Boolean] :full_text Returns the full text of a DM when message text is longer than 140 characters.
def direct_messages_received(options = {})
perform_get_with_objects('/1.1/direct_messages.json', options, Twitter::DirectMessage)
end
Expand All @@ -41,7 +40,6 @@ def direct_messages_received(options = {})
# @option options [Integer] :max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
# @option options [Integer] :count Specifies the number of records to retrieve. Must be less than or equal to 200.
# @option options [Integer] :page Specifies the page of results to retrieve.
# @option options [Boolean] :full_text Returns the full text of a DM when message text is longer than 140 characters.
def direct_messages_sent(options = {})
perform_get_with_objects('/1.1/direct_messages/sent.json', options, Twitter::DirectMessage)
end
Expand All @@ -56,7 +54,6 @@ def direct_messages_sent(options = {})
# @return [Twitter::DirectMessage] The requested messages.
# @param id [Integer] A direct message ID.
# @param options [Hash] A customizable set of options.
# @option options [Boolean] :full_text Returns the full text of a DM when message text is longer than 140 characters.
def direct_message(id, options = {})
options = options.dup
options[:id] = id
Expand Down
8 changes: 4 additions & 4 deletions lib/twitter/rest/tweets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def retweeters_of(tweet, options = {})
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @raise [Twitter::Error::Forbidden] Error raised when supplied status is over 140 characters.
# @raise [Twitter::Error::Forbidden] Error raised when supplied status is over 280 characters.
# @return [Twitter::Tweet] The requested Tweet.
# @param tweet [Integer, String, URI, Twitter::Tweet] A Tweet ID, URI, or object.
# @param options [Hash] A customizable set of options.
Expand Down Expand Up @@ -111,7 +111,7 @@ def destroy_status(*args)
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::Tweet] The created Tweet. When the tweet is deemed a duplicate by Twitter, returns the last Tweet from the user's timeline.
# @param status [String] The text of your status update, up to 140 characters.
# @param status [String] The text of your status update, up to 280 characters.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :possibly_sensitive Set to true for content which may not be suitable for every audience.
# @option options [Twitter::Tweet] :in_reply_to_status An existing status that the update is in reply to. If the status being replied to was not originally posted by the authenticated user, the text of the status must begin with an @-mention, or twitter will reject the update.
Expand All @@ -137,7 +137,7 @@ def update(status, options = {})
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @raise [Twitter::Error::DuplicateStatus] Error raised when a duplicate status is posted.
# @return [Twitter::Tweet] The created Tweet.
# @param status [String] The text of your status update, up to 140 characters.
# @param status [String] The text of your status update, up to 280 characters.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :possibly_sensitive Set to true for content which may not be suitable for every audience.
# @option options [Twitter::Tweet] :in_reply_to_status An existing status that the update is in reply to. If the status being replied to was not originally posted by the authenticated user, the text of the status must begin with an @-mention, or twitter will reject the update.
Expand Down Expand Up @@ -209,7 +209,7 @@ def retweet!(*args)
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::Tweet] The created Tweet.
# @param status [String] The text of your status update, up to 140 characters.
# @param status [String] The text of your status update, up to 280 characters.
# @param media [File, Array<File>] An image file or array of image files (PNG, JPEG or GIF).
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :possibly_sensitive Set to true for content which may not be suitable for every audience.
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter/tweet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Tweet < Twitter::Identity
predicate_attr_reader :favorited, :possibly_sensitive, :retweeted,
:truncated

# @note May be > 140 characters.
# @note May be > 280 characters.
# @return [String]
def full_text
if retweet?
Expand Down

0 comments on commit 2912a67

Please sign in to comment.