Class: Twitter::Tweet::User
- Inherits:
-
Object
- Object
- Twitter::Tweet::User
- Defined in:
- lib/twitter_feed/user.rb
Instance Method Summary collapse
- #getDesc ⇒ Object
- #getFollowersCount ⇒ Object
- #getId ⇒ Object
- #getName ⇒ Object
- #getProfileImgUrl ⇒ Object
- #getScreenName ⇒ Object
- #getUrl ⇒ Object
-
#initialize(id, name, sName, imgUrl, url = '', desc = '', prtd = '', fwc = '') ⇒ User
constructor
A new instance of User.
- #isProtected ⇒ Object
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
#getDesc ⇒ Object
38 39 40 |
# File 'lib/twitter_feed/user.rb', line 38 def getDesc @description end |
#getFollowersCount ⇒ Object
44 45 46 |
# File 'lib/twitter_feed/user.rb', line 44 def getFollowersCount @followersCount end |
#getId ⇒ Object
23 24 25 |
# File 'lib/twitter_feed/user.rb', line 23 def getId @id end |
#getName ⇒ Object
26 27 28 |
# File 'lib/twitter_feed/user.rb', line 26 def getName @name end |
#getProfileImgUrl ⇒ Object
32 33 34 |
# File 'lib/twitter_feed/user.rb', line 32 def getProfileImgUrl @profileImgUrl end |
#getScreenName ⇒ Object
29 30 31 |
# File 'lib/twitter_feed/user.rb', line 29 def getScreenName @screenName end |
#getUrl ⇒ Object
35 36 37 |
# File 'lib/twitter_feed/user.rb', line 35 def getUrl @url end |
#isProtected ⇒ Object
41 42 43 |
# File 'lib/twitter_feed/user.rb', line 41 def isProtected @protected end |