Class: Crown::Twitter::User

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

Overview

————————————————————— #

User

Twitter API 経由であるユーザに対する各種情報を取得するクラス.

————————————————————— #

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.count(screen_name, options = nil) ⇒ Object

———————————————————– #

User.count

———————————————————– #



50
51
52
# File 'lib/crown/twitter/user.rb', line 50

def User.count(screen_name, options = nil)
    return Crown::Twitter::TweetCounter.new.count(screen_name, options)
end

.summary(screen_name, options = nil) ⇒ Object

———————————————————– #

User.summary

———————————————————– #



57
58
59
# File 'lib/crown/twitter/user.rb', line 57

def User.summary(screen_name, options = nil)
    return Crown::Twitter::UserEntry.new.summary(screen_name, options)
end

Instance Method Details

#count(screen_name, options = nil) ⇒ Object

———————————————————– #

count

———————————————————– #



64
65
66
# File 'lib/crown/twitter/user.rb', line 64

def count(screen_name, options = nil)
    return Crown::Twitter::TweetCounter.new.count(screen_name, options)
end

#summary(screen_name, options = nil) ⇒ Object

———————————————————– #

summary

———————————————————– #



71
72
73
# File 'lib/crown/twitter/user.rb', line 71

def summary(screen_name, options = nil)
    return Crown::Twitter::UserEntry.new.summary(screen_name, options)
end