Class: Pupil::Stream::Status

Inherits:
Pupil::Status show all
Defined in:
lib/pupil/stream/base.rb

Overview

Stream Status

Instance Attribute Summary (collapse)

Attributes inherited from Pupil::Status

contributors, coordinates, created_at, favorited, geo, id, id_str, in_reply_to_screen_name, in_reply_to_status_id, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_user_id_str, place, retweet_count, retweeted, source, text, truncated, user

Instance Method Summary (collapse)

Constructor Details

- (Status) initialize(status, event = nil)

A new instance of Status



91
92
93
94
95
# File 'lib/pupil/stream/base.rb', line 91

def initialize status, event=nil
  super(status)
  @event = (event)? event : :status
  @retweeted_status = status["retweeted_status"]
end

Instance Attribute Details

- (Object) event (readonly)

Returns the value of attribute event



88
89
90
# File 'lib/pupil/stream/base.rb', line 88

def event
  @event
end

- (Object) retweeted_status (readonly)

Returns the value of attribute retweeted_status



89
90
91
# File 'lib/pupil/stream/base.rb', line 89

def retweeted_status
  @retweeted_status
end