Class: Pupil::Stream::User

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

Overview

Stream User

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from User

#reply, #status

Methods inherited from Pupil::Scheme

#params

Methods included from Essentials

#get, #guess_parameter, #post, #serialize_parameter

Constructor Details

#initialize(status, access_token, event = nil) ⇒ User

Returns a new instance of User.



130
131
132
133
# File 'lib/pupil/stream/base.rb', line 130

def initialize(status, access_token, event=nil)
  super(status, access_token)
  @event = :follow
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pupil::Scheme

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



128
129
130
# File 'lib/pupil/stream/base.rb', line 128

def event
  @event
end