Class: Twitter::ListMemberAdded
- Defined in:
- lib/twitter/list_member_added.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#sources ⇒ Array<Twitter::User>
A collection of users who added to the list.
-
#target_objects ⇒ Array<Twitter::List>
A collection of lists that were added to.
-
#targets ⇒ Array<Twitter::User>
A collection of users who were added to the list.
Methods included from Creatable
Methods inherited from Base
#[], #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#sources ⇒ Array<Twitter::User>
A collection of users who added to the list
12 13 14 15 16 |
# File 'lib/twitter/list_member_added.rb', line 12 def sources @sources = Array(@attrs['sources']).map do |user| Twitter::User.new(user) end end |
#target_objects ⇒ Array<Twitter::List>
A collection of lists that were added to
21 22 23 24 25 |
# File 'lib/twitter/list_member_added.rb', line 21 def target_objects @target_objects = Array(@attrs['target_objects']).map do |list| Twitter::List.new(list) end end |
#targets ⇒ Array<Twitter::User>
A collection of users who were added to the list
30 31 32 33 34 |
# File 'lib/twitter/list_member_added.rb', line 30 def targets @targets = Array(@attrs['targets']).map do |user| Twitter::User.new(user) end end |