Class: Pupil::Status
- Inherits:
-
Object
- Object
- Pupil::Status
- Defined in:
- lib/pupil/schemes.rb
Instance Attribute Summary (collapse)
-
- (Object) contributors
readonly
Returns the value of attribute contributors.
-
- (Object) coordinates
readonly
Returns the value of attribute coordinates.
-
- (Object) created_at
readonly
Returns the value of attribute created_at.
-
- (Object) favorited
readonly
Returns the value of attribute favorited.
-
- (Object) geo
readonly
Returns the value of attribute geo.
-
- (Object) id
readonly
Returns the value of attribute id.
-
- (Object) id_str
readonly
Returns the value of attribute id_str.
-
- (Object) in_reply_to_screen_name
readonly
Returns the value of attribute in_reply_to_screen_name.
-
- (Object) in_reply_to_status_id
readonly
Returns the value of attribute in_reply_to_status_id.
-
- (Object) in_reply_to_status_id_str
readonly
Returns the value of attribute in_reply_to_status_id_str.
-
- (Object) in_reply_to_user_id
readonly
Returns the value of attribute in_reply_to_user_id.
-
- (Object) in_reply_to_user_id_str
readonly
Returns the value of attribute in_reply_to_user_id_str.
-
- (Object) place
readonly
Returns the value of attribute place.
-
- (Object) retweet_count
readonly
Returns the value of attribute retweet_count.
-
- (Object) retweeted
readonly
Returns the value of attribute retweeted.
-
- (Object) source
readonly
Returns the value of attribute source.
-
- (Object) text
readonly
Returns the value of attribute text.
-
- (Object) truncated
readonly
Returns the value of attribute truncated.
-
- (Object) user
readonly
Returns the value of attribute user.
Instance Method Summary (collapse)
-
- (Status) initialize(j)
constructor
A new instance of Status.
Constructor Details
- (Status) initialize(j)
A new instance of Status
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/pupil/schemes.rb', line 121 def initialize j @contributors = j["contributors"] @coordinates = j["coordinates"] @created_at = j["created_at"] @favorited = j["favorited"] @geo = j["geo"] @id = j["id"] @id_str = j["id_str"] @in_reply_to_screen_name = j["in_reply_to_screen_name"] @in_reply_to_status_id = j["in_reply_to_status_id"] @in_reply_to_status_id_str = j["in_reply_to_status_id_str"] @in_reply_to_user_id = j["in_reply_to_user_id"] @in_reply_to_user_id_str = j["in_reply_to_user_id_str"] @place = j["place"] @retweet_count = j["retweet_count"] @retweeted = j["retweeted"] j["source"] =~ /href=\"(.+?)\".+?>(.+?)</ @source = {:url => $1, :name => $2} @text = j["text"] @truncated = j["truncated"] @user = User.new j["user"] rescue nil end |
Instance Attribute Details
- (Object) contributors (readonly)
Returns the value of attribute contributors
101 102 103 |
# File 'lib/pupil/schemes.rb', line 101 def contributors @contributors end |
- (Object) coordinates (readonly)
Returns the value of attribute coordinates
102 103 104 |
# File 'lib/pupil/schemes.rb', line 102 def coordinates @coordinates end |
- (Object) created_at (readonly)
Returns the value of attribute created_at
103 104 105 |
# File 'lib/pupil/schemes.rb', line 103 def created_at @created_at end |
- (Object) favorited (readonly)
Returns the value of attribute favorited
104 105 106 |
# File 'lib/pupil/schemes.rb', line 104 def favorited @favorited end |
- (Object) geo (readonly)
Returns the value of attribute geo
105 106 107 |
# File 'lib/pupil/schemes.rb', line 105 def geo @geo end |
- (Object) id (readonly)
Returns the value of attribute id
106 107 108 |
# File 'lib/pupil/schemes.rb', line 106 def id @id end |
- (Object) id_str (readonly)
Returns the value of attribute id_str
107 108 109 |
# File 'lib/pupil/schemes.rb', line 107 def id_str @id_str end |
- (Object) in_reply_to_screen_name (readonly)
Returns the value of attribute in_reply_to_screen_name
108 109 110 |
# File 'lib/pupil/schemes.rb', line 108 def in_reply_to_screen_name @in_reply_to_screen_name end |
- (Object) in_reply_to_status_id (readonly)
Returns the value of attribute in_reply_to_status_id
109 110 111 |
# File 'lib/pupil/schemes.rb', line 109 def in_reply_to_status_id @in_reply_to_status_id end |
- (Object) in_reply_to_status_id_str (readonly)
Returns the value of attribute in_reply_to_status_id_str
110 111 112 |
# File 'lib/pupil/schemes.rb', line 110 def in_reply_to_status_id_str @in_reply_to_status_id_str end |
- (Object) in_reply_to_user_id (readonly)
Returns the value of attribute in_reply_to_user_id
111 112 113 |
# File 'lib/pupil/schemes.rb', line 111 def in_reply_to_user_id @in_reply_to_user_id end |
- (Object) in_reply_to_user_id_str (readonly)
Returns the value of attribute in_reply_to_user_id_str
112 113 114 |
# File 'lib/pupil/schemes.rb', line 112 def in_reply_to_user_id_str @in_reply_to_user_id_str end |
- (Object) place (readonly)
Returns the value of attribute place
113 114 115 |
# File 'lib/pupil/schemes.rb', line 113 def place @place end |
- (Object) retweet_count (readonly)
Returns the value of attribute retweet_count
114 115 116 |
# File 'lib/pupil/schemes.rb', line 114 def retweet_count @retweet_count end |
- (Object) retweeted (readonly)
Returns the value of attribute retweeted
115 116 117 |
# File 'lib/pupil/schemes.rb', line 115 def retweeted @retweeted end |
- (Object) source (readonly)
Returns the value of attribute source
116 117 118 |
# File 'lib/pupil/schemes.rb', line 116 def source @source end |
- (Object) text (readonly)
Returns the value of attribute text
117 118 119 |
# File 'lib/pupil/schemes.rb', line 117 def text @text end |
- (Object) truncated (readonly)
Returns the value of attribute truncated
118 119 120 |
# File 'lib/pupil/schemes.rb', line 118 def truncated @truncated end |
- (Object) user (readonly)
Returns the value of attribute user
119 120 121 |
# File 'lib/pupil/schemes.rb', line 119 def user @user end |