Class: Twitter::Action::ListMemberAdded

Inherits:
Base
  • Object
show all
Includes:
Creatable
Defined in:
lib/hackeroo/action/list_member_added.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#max_positionObject (readonly)

Returns the value of attribute max_position.



8
9
10
# File 'lib/hackeroo/action/list_member_added.rb', line 8

def max_position
  @max_position
end

#min_positionObject (readonly)

Returns the value of attribute min_position.



8
9
10
# File 'lib/hackeroo/action/list_member_added.rb', line 8

def min_position
  @min_position
end

Instance Method Details

#sourcesArray<Twitter::User>

A collection of users who added a user to a list

Returns:

  • (Array<Twitter::User>)


13
14
15
16
17
# File 'lib/hackeroo/action/list_member_added.rb', line 13

def sources
  @sources = Array(@attrs[:sources]).map do |user|
    Twitter::User.fetch_or_new(user)
  end
end

#target_objectsArray<Twitter::List>

A collection of lists that were added to

Returns:

  • (Array<Twitter::List>)


22
23
24
25
26
# File 'lib/hackeroo/action/list_member_added.rb', line 22

def target_objects
  @target_objects = Array(@attrs[:target_objects]).map do |list|
    Twitter::List.fetch_or_new(list)
  end
end

#targetsArray<Twitter::User>

A collection of users who were added to a list

Returns:

  • (Array<Twitter::User>)


31
32
33
34
35
# File 'lib/hackeroo/action/list_member_added.rb', line 31

def targets
  @targets = Array(@attrs[:targets]).map do |user|
    Twitter::User.fetch_or_new(user)
  end
end