Class: Crown::Twitter::User
- Inherits:
-
Object
- Object
- Crown::Twitter::User
- Defined in:
- lib/crown/twitter/user.rb
Overview
--------------------------------------------------------------- #
User
Twitter API 経由であるユーザに対する各種情報を取得するクラス.
--------------------------------------------------------------- #
Class Method Summary collapse
-
.count(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # User.count ----------------------------------------------------------- #.
-
.summary(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # User.summary ----------------------------------------------------------- #.
Instance Method Summary collapse
-
#count(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # count ----------------------------------------------------------- #.
-
#summary(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # summary ----------------------------------------------------------- #.
Class Method Details
.count(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # User.count ----------------------------------------------------------- #
50 51 52 |
# File 'lib/crown/twitter/user.rb', line 50 def User.count(screen_name, = {}) return Crown::Twitter::TweetCounter.new.count(screen_name, ) end |
.summary(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # User.summary ----------------------------------------------------------- #
57 58 59 |
# File 'lib/crown/twitter/user.rb', line 57 def User.summary(screen_name, = {}) return Crown::Twitter::UserEntry.new.summary(screen_name, ) end |
Instance Method Details
#count(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # count ----------------------------------------------------------- #
64 65 66 |
# File 'lib/crown/twitter/user.rb', line 64 def count(screen_name, = {}) return Crown::Twitter::TweetCounter.new.count(screen_name, ) end |
#summary(screen_name, options = {}) ⇒ Object
----------------------------------------------------------- # summary ----------------------------------------------------------- #
71 72 73 |
# File 'lib/crown/twitter/user.rb', line 71 def summary(screen_name, = {}) return Crown::Twitter::UserEntry.new.summary(screen_name, ) end |