Skip to content

Commit

Permalink
Cleanup trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Feb 18, 2012
1 parent 20bcc2a commit b695866
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/twitter/response/parse_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def parse(body)
when 'false'
false
else
::MultiJson.decode(body)
end
::MultiJson.decode(body)
end
end

def on_complete(env)
if respond_to? :parse
env[:body] = parse(env[:body]) unless env[:request][:raw] or [204,304].index env[:status]
Expand Down
4 changes: 3 additions & 1 deletion lib/twitter/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Status < Twitter::Base
lazy_attr_reader :favorited, :from_user, :from_user_id, :from_user_name, :id,
:in_reply_to_screen_name, :in_reply_to_attrs_id, :in_reply_to_status_id,
:in_reply_to_user_id, :iso_language_code, :profile_image_url,
:retweet_count, :retweeted, :source, :text, :to_user, :to_user_id, :to_user_name,
:retweet_count, :retweeted, :source, :text, :to_user, :to_user_id, :to_user_name,
:truncated
alias :favorited? :favorited
alias :retweeted? :retweeted
Expand All @@ -27,6 +27,7 @@ def ==(other)
super || (other.class == self.class && other.id == self.id)
end

# @note Must :include_entities in your request for this method to work
# @return [Array<String>]
def expanded_urls
@expanded_urls ||= Array(@attrs['entities']['urls']).map do |url|
Expand All @@ -39,6 +40,7 @@ def geo
@geo ||= Twitter::GeoFactory.new(@attrs['geo']) unless @attrs['geo'].nil?
end

# @note Must :include_entities in your request for this method to work
# @return [Array]
def media
@media ||= Array(@attrs['entities']['media']).map do |media|
Expand Down

0 comments on commit b695866

Please sign in to comment.