Class: Tuiter::Status

Inherits:
StatusBasic show all
Defined in:
lib/tuiter/data/status.rb

Instance Attribute Summary collapse

Attributes inherited from StatusBasic

#created_at, #favorited, #id, #in_reply_to_screen_name, #in_reply_to_status_id, #in_reply_to_user_id, #source, #text, #truncated

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ Status

Returns a new instance of Status.



36
37
38
39
40
41
# File 'lib/tuiter/data/status.rb', line 36

def initialize(data=nil)
  unless data.nil?
    super(data)
    @user = User.new(data["user"])
  end
end

Instance Attribute Details

#userObject

Returns the value of attribute user.



34
35
36
# File 'lib/tuiter/data/status.rb', line 34

def user
  @user
end