lib/pupil/statuses.rb in pupil-0.2.1 vs lib/pupil/statuses.rb in pupil-0.2.2
- old
+ new
@@ -7,21 +7,23 @@
# @option param [Fixnum] :page
# @option param [Symbol] :trim_user
# @option param [Symbol] :include #=> [:rts]
# @option param [Symbol] :exclude #=> [:replies]
# @option param [Symbol] :contributor_details
- def home_timeline(param={})
+ def timeline(param={})
response = self.get("/1/statuses/home_timeline.json", param)
return false unless response
statuses = []
response.each do |element|
status = Status.new(element, @access_token)
statuses << status
end
return statuses
end
+ alias_method :home_timeline, :timeline
+
# @return [Array] Mention
# @param [Hash] param
def mentions(param={})
response = self.get("/1/statuses/mentions.json", param)
return false unless response
@@ -59,9 +61,12 @@
status = Status.new(element, @access_token)
statuses << status
end
return statuses
end
+
+ alias_method :timeline_for, :user_timeline
+
# Returning public timeline
# @return [Array] Timeline
# @param [Hash] param
def public_timeline(param={})
response = self.get("/1/statuses/public_timeline.json", param)
\ No newline at end of file