Class: Twitter::Action::ListMemberAdded
- Includes:
- Creatable
- Defined in:
- lib/twitter/action/list_member_added.rb
Instance Attribute Summary collapse
-
#max_position ⇒ Object
readonly
Returns the value of attribute max_position.
-
#min_position ⇒ Object
readonly
Returns the value of attribute min_position.
Attributes inherited from Base
Instance Method Summary collapse
-
#sources ⇒ Array<Twitter::User>
A collection of users who added a user to a 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 a list.
Methods included from Creatable
Methods inherited from Base
#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Attribute Details
#max_position ⇒ Object (readonly)
Returns the value of attribute max_position.
10 11 12 |
# File 'lib/twitter/action/list_member_added.rb', line 10 def max_position @max_position end |
#min_position ⇒ Object (readonly)
Returns the value of attribute min_position.
10 11 12 |
# File 'lib/twitter/action/list_member_added.rb', line 10 def min_position @min_position end |
Instance Method Details
#sources ⇒ Array<Twitter::User>
A collection of users who added a user to a list
15 16 17 18 19 |
# File 'lib/twitter/action/list_member_added.rb', line 15 def sources @sources = Array(@attrs[:sources]).map do |user| Twitter::User.fetch_or_new(user) end end |
#target_objects ⇒ Array<Twitter::List>
A collection of lists that were added to
24 25 26 27 28 |
# File 'lib/twitter/action/list_member_added.rb', line 24 def target_objects @target_objects = Array(@attrs[:target_objects]).map do |list| Twitter::List.fetch_or_new(list) end end |
#targets ⇒ Array<Twitter::User>
A collection of users who were added to a list
33 34 35 36 37 |
# File 'lib/twitter/action/list_member_added.rb', line 33 def targets @targets = Array(@attrs[:targets]).map do |user| Twitter::User.fetch_or_new(user) end end |