lib/twitter/model.rb in mbbx6spp-twitter4r-0.3.1 vs lib/twitter/model.rb in mbbx6spp-twitter4r-0.4.0

- old
+ new

@@ -156,11 +156,17 @@ end # Represents a <tt>Twitter</tt> user class User include ModelMixin - @@ATTRIBUTES = [:id, :name, :description, :location, :screen_name, :url, :profile_image_url, :protected] + @@ATTRIBUTES = [:id, :name, :description, :location, :screen_name, :url, + :protected, :profile_image_url, :profile_background_color, + :profile_text_color, :profile_link_color, :profile_sidebar_fill_color, + :profile_sidebar_border_color, :profile_background_image_url, + :profile_background_tile, :utc_offset, :time_zone, + :following, :notifications, :favourites_count, :followers_count, + :friends_count, :statuses_count, :created_at, ] attr_accessor *@@ATTRIBUTES class << self # Used as factory method callback def attributes; @@ATTRIBUTES; end @@ -217,11 +223,13 @@ end # User # Represents a status posted to <tt>Twitter</tt> by a <tt>Twitter</tt> user. class Status include ModelMixin - @@ATTRIBUTES = [:id, :text, :created_at, :user, :in_reply_to_status_id] + @@ATTRIBUTES = [:id, :text, :source, :truncated, :created_at, :user, + :favorited, :in_reply_to_status_id, :in_reply_to_user_id, + :in_reply_to_screen_name] attr_accessor *@@ATTRIBUTES class << self # Used as factory method callback def attributes; @@ATTRIBUTES; end @@ -261,9 +269,13 @@ end end def reply? !!@in_reply_to_status_id + end + + def reply(status) + client.status(:reply, :status => status, :in_reply_to_status_id => @id) end protected # Constructor callback def init