Parent

Methods

Class/Module Index [+]

Quicksearch

Twitter::Streaming::Event

Attributes

name[R]
source[R]
target[R]
target_object[R]

Public Class Methods

new(data) click to toggle source

@param data [Hash]

# File lib/twitter/streaming/event.rb, line 17
def initialize(data)
  @name = data[:event].to_sym
  @source = Twitter::User.new(data[:source])
  @target = Twitter::User.new(data[:target])
  @target_object = target_object_factory(@name, data[:target_object])
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.