Class: Twitter::Tweet::User

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_feed/user.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, name, sName, imgUrl, url = '', desc = '', prtd = '', fwc = '') ⇒ User

Returns a new instance of User.



11
12
13
14
15
16
17
18
19
20
# File 'lib/twitter_feed/user.rb', line 11

def initialize(id,name,sName,imgUrl,url='',desc='',prtd='',fwc='')
   @id=id
   @name=name
   @screenName=sName
   @profileImgURL=imgUrl
   @url=url
   @description=desc
   @protected=prtd
   @followersCount=fwc
end

Instance Method Details

#getDescObject



38
39
40
# File 'lib/twitter_feed/user.rb', line 38

def getDesc
 @description
end

#getFollowersCountObject



44
45
46
# File 'lib/twitter_feed/user.rb', line 44

def getFollowersCount
 @followersCount
end

#getIdObject



23
24
25
# File 'lib/twitter_feed/user.rb', line 23

def getId
 @id
end

#getNameObject



26
27
28
# File 'lib/twitter_feed/user.rb', line 26

def getName
 @name
end

#getProfileImgUrlObject



32
33
34
# File 'lib/twitter_feed/user.rb', line 32

def getProfileImgUrl
 @profileImgUrl
end

#getScreenNameObject



29
30
31
# File 'lib/twitter_feed/user.rb', line 29

def getScreenName
 @screenName
end

#getUrlObject



35
36
37
# File 'lib/twitter_feed/user.rb', line 35

def getUrl
 @url
end

#isProtectedObject



41
42
43
# File 'lib/twitter_feed/user.rb', line 41

def isProtected
 @protected
end