Class: TwitterFriends
- Inherits:
-
Object
- Object
- TwitterFriends
- Defined in:
- lib/twitter_friends.rb
Constant Summary collapse
- DEBUG =
false
Instance Attribute Summary collapse
-
#screen_name ⇒ Object
readonly
Returns the value of attribute screen_name.
Instance Method Summary collapse
- #friends ⇒ Object
-
#initialize(screen_name) ⇒ TwitterFriends
constructor
A new instance of TwitterFriends.
Constructor Details
#initialize(screen_name) ⇒ TwitterFriends
Returns a new instance of TwitterFriends.
13 14 15 |
# File 'lib/twitter_friends.rb', line 13 def initialize(screen_name) @screen_name = screen_name end |
Instance Attribute Details
#screen_name ⇒ Object (readonly)
Returns the value of attribute screen_name.
9 10 11 |
# File 'lib/twitter_friends.rb', line 9 def screen_name @screen_name end |
Instance Method Details
#friends ⇒ Object
17 18 19 20 21 |
# File 'lib/twitter_friends.rb', line 17 def friends @friends ||= fetch_friends rescue OpenURI::HTTPError => err nil end |