Skip to content
Browse files

Fully remove Rash

  • Loading branch information...
1 parent 130d792 commit 3b39696902cc05a29bac35e7465ef352264b694d @sferik committed Jun 8, 2011
View
16 lib/twitter/client/account.rb
@@ -9,7 +9,7 @@ module Account
# @rate_limited true
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @raise [Twitter::Unauthorized] Error raised when supplied user credentials are not valid.
# @see http://dev.twitter.com/doc/get/account/verify_credentials
# @example Return the requesting user if authentication was successful
@@ -27,7 +27,7 @@ def verify_credentials(options={})
# This will return the requesting IP's rate limit status. If you want the authenticating user's rate limit status you must authenticate.
# @rate_limited true
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/get/account/rate_limit_status
# @example Return the remaining number of API requests available to the requesting user
# Twitter.rate_limit_status
@@ -42,7 +42,7 @@ def rate_limit_status(options={})
# @authenticated true
# @rate_limited false
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/post/account/end_session
# @example End the session of the authenticating user
# Twitter.end_session
@@ -59,7 +59,7 @@ def end_session(options={})
# @param device [String] Must be one of: 'sms', 'none'.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @see http://dev.twitter.com/doc/post/account/update_delivery_device
# @example Turn SMS updates on for the authenticating user
# Twitter.update_delivery_device('sms')
@@ -80,7 +80,7 @@ def update_delivery_device(device, options={})
# @option options [String] :profile_sidebar_fill_color Profile sidebar's background color.
# @option options [String] :profile_sidebar_border_color Profile sidebar's border color.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @see http://dev.twitter.com/doc/post/account/update_profile_colors
# @example Set authenticating user's profile background to black
# Twitter.update_profile_colors(:profile_background_color => '000000')
@@ -98,7 +98,7 @@ def update_profile_colors(options={})
# @param image [String] The avatar image for the profile. Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 500 pixels will be scaled down. Animated GIFs will be converted to a static GIF of the first frame, removing the animation.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @see http://dev.twitter.com/doc/post/account/update_profile_image
# @example Update the authenticating user's profile image
# Twitter.update_profile_image(File.new("me.jpeg"))
@@ -116,7 +116,7 @@ def update_profile_image(image, options={})
# @param options [Hash] A customizable set of options.
# @option options [Boolean] :tile Whether or not to tile the background image. If set to true the background image will be displayed tiled. The image will not be tiled otherwise.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @see http://dev.twitter.com/doc/post/account/update_profile_background_image
# @example Update the authenticating user's profile background image
# Twitter.update_profile_background_image(File.new("we_concept_bg2.png"))
@@ -137,7 +137,7 @@ def update_profile_background_image(image, options={})
# @option options [String] :location The city or country describing where the user of the account is located. The contents are not normalized or geocoded in any way. Maximum of 30 characters.
# @option options [String] :description A description of the user owning the account. Maximum of 160 characters.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The authenticated user.
+ # @return [Hashie::Mash] The authenticated user.
# @see http://dev.twitter.com/doc/post/account/update_profile
# @example Set authenticating user's name to Erik Michaels-Ober
# Twitter.update_profile(:name => "Erik Michaels-Ober")
View
4 lib/twitter/client/block.rb
@@ -12,7 +12,7 @@ module Block
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The blocked user.
+ # @return [Hashie::Mash] The blocked user.
# @see http://dev.twitter.com/doc/post/blocks/create
# @example Block and unfriend @sferik as the authenticating user
# Twitter.block("sferik")
@@ -31,7 +31,7 @@ def block(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The un-blocked user.
+ # @return [Hashie::Mash] The un-blocked user.
# @see http://dev.twitter.com/doc/post/blocks/destroy
# @example Un-block @sferik as the authenticating user
# Twitter.unblock("sferik")
View
4 lib/twitter/client/direct_messages.rb
@@ -51,7 +51,7 @@ def direct_messages_sent(options={})
# @param text [String] The text of your direct message, up to 140 characters.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The sent message.
+ # @return [Hashie::Mash] The sent message.
# @see http://dev.twitter.com/doc/post/direct_messages/new
# @example Send a direct message to @sferik from the authenticating user
# Twitter.direct_message_create("sferik", "I'm sending you this message via the Twitter Ruby Gem!")
@@ -71,7 +71,7 @@ def direct_message_create(user, text, options={})
# @param id [Integer] The ID of the direct message to delete.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The deleted message.
+ # @return [Hashie::Mash] The deleted message.
# @see http://dev.twitter.com/doc/post/direct_messages/destroy/:id
# @example Destroys the direct message with the ID 1825785544
# Twitter.direct_message_destroy(1825785544)
View
4 lib/twitter/client/favorites.rb
@@ -39,7 +39,7 @@ def favorites(*args)
# @param id [Integer] The numerical ID of the desired status.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The favorited status.
+ # @return [Hashie::Mash] The favorited status.
# @see http://dev.twitter.com/doc/post/favorites/create/:id
# @example Favorite the status with the ID 25938088801
# Twitter.favorite_create(25938088801)
@@ -56,7 +56,7 @@ def favorite_create(id, options={})
# @param id [Integer] The numerical ID of the desired status.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The un-favorited status.
+ # @return [Hashie::Mash] The un-favorited status.
# @see http://dev.twitter.com/doc/post/favorites/destroy/:id
# @example Un-favorite the status with the ID 25938088801
# Twitter.favorite_destroy(25938088801)
View
4 lib/twitter/client/friends_and_followers.rb
@@ -32,7 +32,7 @@ def friend_ids(*args)
user = args.first
merge_user_into_options!(user, options)
response = get('friends/ids', options)
- format.to_s.downcase == 'xml' ? Hashie::Rash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
+ format.to_s.downcase == 'xml' ? Hashie::Mash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
end
# @overload follower_ids(options={})
@@ -65,7 +65,7 @@ def follower_ids(*args)
user = args.first
merge_user_into_options!(user, options)
response = get('followers/ids', options)
- format.to_s.downcase == 'xml' ? Hashie::Rash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
+ format.to_s.downcase == 'xml' ? Hashie::Mash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
end
end
end
View
14 lib/twitter/client/friendship.rb
@@ -11,7 +11,7 @@ module Friendship
# @param options [Hash] A customizable set of options.
# @option options [Boolean] :follow (false) Enable notifications for the target user.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The followed user.
+ # @return [Hashie::Mash] The followed user.
# @see http://dev.twitter.com/doc/post/friendships/create
# @example Follow @sferik
# Twitter.follow("sferik")
@@ -33,7 +33,7 @@ def follow(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The unfollowed user.
+ # @return [Hashie::Mash] The unfollowed user.
# @see http://dev.twitter.com/doc/post/friendships/destroy
# @example Unfollow @sferik
# Twitter.unfollow("sferik")
@@ -90,7 +90,7 @@ def friendship_exists?(user_a, user_b, options={})
# @option options [String] :source_screen_name The screen_name of the subject user.
# @option options [Integer] :target_id The ID of the target user.
# @option options [String] :target_screen_name The screen_name of the target user.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/get/friendships/show
# @example Return the relationship between @sferik and @pengwynn
# Twitter.friendship(:source_screen_name => "sferik", :target_screen_name => "pengwynn")
@@ -107,14 +107,14 @@ def friendship(options={})
# @rate_limited true
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/get/friendships/incoming
# @example Return an array of numeric IDs for every user who has a pending request to follow the authenticating user
# Twitter.friendships_incoming
def friendships_incoming(options={})
options = {:cursor => -1}.merge(options)
response = get('friendships/incoming', options)
- format.to_s.downcase == 'xml' ? Hashie::Rash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
+ format.to_s.downcase == 'xml' ? Hashie::Mash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
end
# Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request
@@ -124,14 +124,14 @@ def friendships_incoming(options={})
# @rate_limited true
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/get/friendships/outgoing
# @example Return an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request
# Twitter.friendships_outgoing
def friendships_outgoing(options={})
options = {:cursor => -1}.merge(options)
response = get('friendships/outgoing', options)
- format.to_s.downcase == 'xml' ? Hashie::Rash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
+ format.to_s.downcase == 'xml' ? Hashie::Mash.new(:ids => response['id_list']['ids']['id'].map{|id| id.to_i}) : response
end
end
end
View
4 lib/twitter/client/geo.rb
@@ -74,7 +74,7 @@ def reverse_geocode(options={})
# @rate_limited true
# @param place_id [String] A place in the world. These IDs can be retrieved from {Twitter::Client::Geo#reverse_geocode}.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The requested place.
+ # @return [Hashie::Mash] The requested place.
# @see http://dev.twitter.com/doc/get/geo/id/:place_id
# @example Return all the information about Twitter HQ
# Twitter.place("247f43d441defc03")
@@ -94,7 +94,7 @@ def place(place_id, options={})
# @option options [Float] :lat The latitude to search around. This option will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding :long option.
# @option options [Float] :long The longitude to search around. The valid range for longitude is -180.0 to +180.0 (East is positive) inclusive. This option will be ignored if outside that range, if it is not a number, if geo_enabled is disabled, or if there not a corresponding :lat option.
# @option options [String] :"attribute:street_address" This option searches for places which have this given street address. There are other well-known and application-specific attributes available. Custom attributes are also permitted.
- # @return [Hashie::Rash] The created place.
+ # @return [Hashie::Mash] The created place.
# @see http://dev.twitter.com/doc/post/geo/place
# @example Create a new place
# Twitter.place_create(:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581")
View
26 lib/twitter/client/list.rb
@@ -23,7 +23,7 @@ module List
# @option options [String] :description The description to give the list.
# @example Create a list named "presidents"
# Twitter.list_create("presidents")
- # @return [Hashie::Rash] The created list.
+ # @return [Hashie::Mash] The created list.
# @format :json, :xml
# @authenticated true
# @rate_limited false
@@ -45,7 +45,7 @@ def list_create(*args)
# @param options [Hash] A customizable set of options.
# @option options [String] :mode ('public') Whether your list is public or private. Values can be 'public' or 'private'.
# @option options [String] :description The description to give the list.
- # @return [Hashie::Rash] The created list.
+ # @return [Hashie::Mash] The created list.
# @example Update the authenticated user's "presidents" list to have the description "Presidents of the United States of America"
# Twitter.list_update("presidents", :description => "Presidents of the United States of America")
# Twitter.list_update(8863586, :description => "Presidents of the United States of America")
@@ -55,13 +55,13 @@ def list_create(*args)
# @param options [Hash] A customizable set of options.
# @option options [String] :mode ('public') Whether your list is public or private. Values can be 'public' or 'private'.
# @option options [String] :description The description to give the list.
- # @return [Hashie::Rash] The created list.
+ # @return [Hashie::Mash] The created list.
# @example Update the @sferik's "presidents" list to have the description "Presidents of the United States of America"
# Twitter.list_update("sferik", "presidents", :description => "Presidents of the United States of America")
# Twitter.list_update(7505382, "presidents", :description => "Presidents of the United States of America")
# Twitter.list_update("sferik", 8863586, :description => "Presidents of the United States of America")
# Twitter.list_update(7505382, 8863586, :description => "Presidents of the United States of America")
- # @return [Hashie::Rash] The created list.
+ # @return [Hashie::Mash] The created list.
# @format :json, :xml
# @authenticated true
# @rate_limited false
@@ -82,18 +82,18 @@ def list_update(*args)
# @overload lists(options={})
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example List the authenticated user's lists
# Twitter.lists
# @overload lists(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example List @sferik's lists
# Twitter.lists("sferik")
# Twitter.lists(7505382)
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @see http://dev.twitter.com/doc/get/:user/lists
# @format :json, :xml
# @authenticated true
@@ -111,21 +111,21 @@ def lists(*args)
# @overload list(list, options={})
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Show the authenticated user's "presidents" list
# Twitter.list("presidents")
# Twitter.list(8863586)
# @overload list(user, list, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Show @sferik's "presidents" list
# Twitter.list("sferik", "presidents")
# Twitter.list("sferik", 8863586)
# Twitter.list(7505382, "presidents")
# Twitter.list(7505382, 8863586)
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @note Private lists will only be shown if the authenticated user owns the specified list.
# @format :json, :xml
# @authenticated true
@@ -146,21 +146,21 @@ def list(*args)
# @overload list_delete(list, options={})
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The deleted list.
+ # @return [Hashie::Mash] The deleted list.
# @example Delete the authenticated user's "presidents" list
# Twitter.list_delete("presidents")
# Twitter.list_delete(8863586)
# @overload list_delete(user, list, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The deleted list.
+ # @return [Hashie::Mash] The deleted list.
# @example Delete @sferik's "presidents" list
# Twitter.list_delete("sferik", "presidents")
# Twitter.list_delete("sferik", 8863586)
# Twitter.list_delete(7505382, "presidents")
# Twitter.list_delete(7505382, 8863586)
- # @return [Hashie::Rash] The deleted list.
+ # @return [Hashie::Mash] The deleted list.
# @note Must be owned by the authenticated user.
# @format :json, :xml
# @authenticated true
View
18 lib/twitter/client/list_members.rb
@@ -48,7 +48,7 @@ def list_members(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param user_to_add [Integer, String] The user id or screen name to add to the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Add @BarackObama to the authenticated user's "presidents" list
# Twitter.list_add_member("presidents", 813286)
# Twitter.list_add_member(8863586, 813286)
@@ -57,13 +57,13 @@ def list_members(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param user_to_add [Integer, String] The user id or screen name to add to the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Add @BarackObama to @sferik's "presidents" list
# Twitter.list_add_member("sferik", "presidents", 813286)
# Twitter.list_add_member('sferik', 8863586, 813286)
# Twitter.list_add_member(7505382, "presidents", 813286)
# Twitter.list_add_member(7505382, 8863586, 813286)
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @note Lists are limited to having 500 members.
# @format :json, :xml
# @authenticated true
@@ -86,7 +86,7 @@ def list_add_member(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param users_to_add [Array] The user IDs and/or screen names to add.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Add @BarackObama and @pengwynn to the authenticated user's "presidents" list
# Twitter.list_add_members("presidents", [813286, 18755393])
# Twitter.list_add_members('presidents', [813286, 'pengwynn'])
@@ -96,14 +96,14 @@ def list_add_member(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param users_to_add [Array] The user IDs and/or screen names to add.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Add @BarackObama and @pengwynn to @sferik's "presidents" list
# Twitter.list_add_members("sferik", "presidents", [813286, 18755393])
# Twitter.list_add_members('sferik', 'presidents', [813286, 'pengwynn'])
# Twitter.list_add_members('sferik', 8863586, [813286, 18755393])
# Twitter.list_add_members(7505382, "presidents", [813286, 18755393])
# Twitter.list_add_members(7505382, 8863586, [813286, 18755393])
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @note Lists are limited to having 500 members, and you are limited to adding up to 100 members to a list at a time with this method.
# @format :json, :xml
# @authenticated true
@@ -126,7 +126,7 @@ def list_add_members(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param user_to_remove [Integer, String] The user id or screen name of the list member to remove.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Remove @BarackObama from the authenticated user's "presidents" list
# Twitter.list_remove_member("presidents", 813286)
# Twitter.list_remove_member("presidents", 'BarackObama')
@@ -136,13 +136,13 @@ def list_add_members(*args)
# @param list [Integer, String] The list_id or slug of the list.
# @param user_to_remove [Integer, String] The user id or screen name of the list member to remove.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @example Remove @BarackObama from @sferik's "presidents" list
# Twitter.list_remove_member("sferik", "presidents", 813286)
# Twitter.list_remove_member("sferik", "presidents", 'BarackObama')
# Twitter.list_remove_member('sferik', 8863586, 'BarackObama')
# Twitter.list_remove_member(7505382, "presidents", 813286)
- # @return [Hashie::Rash] The list.
+ # @return [Hashie::Mash] The list.
# @format :json, :xml
# @authenticated true
# @rate_limited false
View
12 lib/twitter/client/list_subscribers.rb
@@ -46,20 +46,20 @@ def list_subscribers(*args)
# @overload list_subscribe(list, options={})
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Subscribe to the authenticated user's "presidents" list
# Twitter.list_subscribe('presidents')
# Twitter.list_subscribe(8863586)
# @overload list_subscribe(user, list, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Subscribe to @sferik's "presidents" list
# Twitter.list_subscribe("sferik", 'presidents')
# Twitter.list_subscribe("sferik", 8863586)
# Twitter.list_subscribe(7505382, 'presidents')
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @format :json, :xml
# @authenticated true
# @rate_limited false
@@ -79,20 +79,20 @@ def list_subscribe(*args)
# @overload list_unsubscribe(list, options={})
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Unsubscribe from the authenticated user's "presidents" list
# Twitter.list_unsubscribe('presidents')
# Twitter.list_unsubscribe(8863586)
# @overload list_unsubscribe(user, list, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param list [Integer, String] The list_id or slug of the list.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @example Unsubscribe from @sferik's "presidents" list
# Twitter.list_unsubscribe("sferik", 'presidents')
# Twitter.list_unsubscribe("sferik", 8863586)
# Twitter.list_unsubscribe(7505382, 'presidents')
- # @return [Hashie::Rash] The specified list.
+ # @return [Hashie::Mash] The specified list.
# @format :json, :xml
# @authenticated true
# @rate_limited false
View
4 lib/twitter/client/notification.rb
@@ -10,7 +10,7 @@ module Notification
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The specified user.
+ # @return [Hashie::Mash] The specified user.
# @see http://dev.twitter.com/doc/post/notifications/follow
# @example Enable device notifications for updates from @sferik
# Twitter.enable_notifications("sferik")
@@ -29,7 +29,7 @@ def enable_notifications(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The specified user.
+ # @return [Hashie::Mash] The specified user.
# @see http://dev.twitter.com/doc/post/notifications/leave
# @example Disable device notifications for updates from @sferik
# Twitter.disable_notifications("sferik")
View
6 lib/twitter/client/saved_searches.rb
@@ -24,7 +24,7 @@ def saved_searches(options={})
# @rate_limited true
# @param id [Integer] The ID of the saved search.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The saved search.
+ # @return [Hashie::Mash] The saved search.
# @see http://dev.twitter.com/doc/get/saved_searches/show/:id
# @example Retrieve the data for a saved search owned by the authenticating user with the ID 16129012
# Twitter.saved_search(16129012)
@@ -40,7 +40,7 @@ def saved_search(id, options={})
# @rate_limited false
# @param query [String] The query of the search the user would like to save.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The created saved search.
+ # @return [Hashie::Mash] The created saved search.
# @see http://dev.twitter.com/doc/post/saved_searches/create
# @example Create a saved search for the authenticated user with the query "twitter"
# Twitter.saved_search_create("twitter")
@@ -57,7 +57,7 @@ def saved_search_create(query, options={})
# @rate_limited false
# @param id [Integer] The ID of the saved search.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The deleted saved search.
+ # @return [Hashie::Mash] The deleted saved search.
# @see http://dev.twitter.com/doc/post/saved_searches/destroy/:id
# @example Destroys a saved search for the authenticated user with the ID 16129012
# Twitter.saved_search_destroy(16129012)
View
2 lib/twitter/client/spam_reporting.rb
@@ -11,7 +11,7 @@ module SpamReporting
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The requested user.
+ # @return [Hashie::Mash] The requested user.
# @see http://dev.twitter.com/doc/post/report_spam
# @example Report @spam for spam
# Twitter.report_spam("spam")
View
8 lib/twitter/client/tweets.rb
@@ -11,7 +11,7 @@ module Tweets
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The requested status.
+ # @return [Hashie::Mash] The requested status.
# @see http://dev.twitter.com/doc/get/statuses/show/:id
# @example Return the status with the ID 25938088801
# Twitter.status(25938088801)
@@ -35,7 +35,7 @@ def status(id, options={})
# @option options [String] :display_coordinates Whether or not to put a pin on the exact coordinates a tweet has been sent from.
# @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The created status.
+ # @return [Hashie::Mash] The created status.
# @see http://dev.twitter.com/doc/post/statuses/update
# @example Update the authenticating user's status
# Twitter.update("I just posted a status update via the Twitter Ruby Gem!")
@@ -54,7 +54,7 @@ def update(status, options={})
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The deleted status.
+ # @return [Hashie::Mash] The deleted status.
# @see http://dev.twitter.com/doc/post/statuses/destroy/:id
# @example Destroy the status with the ID 25938088801
# Twitter.status_destroy(25938088801)
@@ -73,7 +73,7 @@ def status_destroy(id, options={})
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :trim_user Each tweet returned in a timeline will include a user object with only the author's numerical ID when set to true, 't' or 1.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The original tweet with retweet details embedded.
+ # @return [Hashie::Mash] The original tweet with retweet details embedded.
# @see http://dev.twitter.com/doc/post/statuses/retweet/:id
# @example Retweet the status with the ID 28561922516
# Twitter.retweet(28561922516)
View
10 lib/twitter/client/user.rb
@@ -8,7 +8,7 @@ module User
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash] The requested user.
+ # @return [Hashie::Mash] The requested user.
# @example Return extended information for @sferik
# Twitter.user("sferik")
# Twitter.user(7505382) # Same as above
@@ -136,15 +136,15 @@ def profile_image(*args)
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example Return the authenticated user's friends
# Twitter.friends
# @overload friends(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example Return @sferik's friends
# Twitter.friends("sferik")
# Twitter.friends(7505382) # Same as above
@@ -173,15 +173,15 @@ def friends(*args)
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response object's next_cursor and previous_cursor attributes to page back and forth in the list.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example Return the authenticated user's followers
# Twitter.followers
# @overload followers(user, options={})
# @param user [Integer, String] A Twitter user ID or screen name.
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into pages. Provide values as returned in the response objects's next_cursor and previous_cursor attributes to page back and forth in the list.
# @option options [Boolean, String, Integer] :include_entities Include {http://dev.twitter.com/pages/tweet_entities Tweet Entities} when set to true, 't' or 1.
- # @return [Hashie::Rash]
+ # @return [Hashie::Mash]
# @example Return @sferik's followers
# Twitter.followers("sferik")
# Twitter.followers(7505382) # Same as above
View
2 lib/twitter/search.rb
@@ -464,7 +464,7 @@ def fetch(force=false)
# Calls block once for each element in self, passing that element as a parameter
#
- # @yieldparam [Hashie::Rash] result Tweet that matches specified query.
+ # @yieldparam [Hashie::Mash] result Tweet that matches specified query.
# @return [Array] Tweets that match specified query.
# @example
# Twitter::Search.new.containing('marry me').to('justinbieber').each do |result|

0 comments on commit 3b39696

Please sign in to comment.
Something went wrong with that request. Please try again.