Class: Twitter::List

Inherits:
Identity show all
Includes:
Creatable
Defined in:
lib/twitter/list.rb

Instance Attribute Summary (collapse)

Attributes inherited from Identity

#id

Attributes inherited from Base

#attrs

Instance Method Summary (collapse)

Methods included from Creatable

#created?, #created_at

Methods inherited from Identity

#initialize

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, deprecate_attribute_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader

Methods included from Utils

flat_pmap, pmap

Constructor Details

This class inherits a constructor from Twitter::Identity

Instance Attribute Details

- (Object) description (readonly)

Returns the value of attribute description



7
8
9
# File 'lib/twitter/list.rb', line 7

def description
  @description
end

- (Object) full_name (readonly)

Returns the value of attribute full_name



7
8
9
# File 'lib/twitter/list.rb', line 7

def full_name
  @full_name
end

- (Object) member_count (readonly)

Returns the value of attribute member_count



7
8
9
# File 'lib/twitter/list.rb', line 7

def member_count
  @member_count
end

- (Object) mode (readonly)

Returns the value of attribute mode



7
8
9
# File 'lib/twitter/list.rb', line 7

def mode
  @mode
end

- (Object) name (readonly)

Returns the value of attribute name



7
8
9
# File 'lib/twitter/list.rb', line 7

def name
  @name
end

- (Object) slug (readonly)

Returns the value of attribute slug



7
8
9
# File 'lib/twitter/list.rb', line 7

def slug
  @slug
end

- (Object) subscriber_count (readonly)

Returns the value of attribute subscriber_count



7
8
9
# File 'lib/twitter/list.rb', line 7

def subscriber_count
  @subscriber_count
end

Instance Method Details

- (Addressable::URI) members_uri Also known as: members_url



13
14
15
# File 'lib/twitter/list.rb', line 13

def members_uri
  Addressable::URI.parse("https://twitter.com/#{user.screen_name}/#{slug}/members")
end

- (Addressable::URI) subscribers_uri Also known as: subscribers_url



20
21
22
# File 'lib/twitter/list.rb', line 20

def subscribers_uri
  Addressable::URI.parse("https://twitter.com/#{user.screen_name}/#{slug}/subscribers")
end

- (Addressable::URI) uri Also known as: url



27
28
29
# File 'lib/twitter/list.rb', line 27

def uri
  Addressable::URI.parse("https://twitter.com/#{user.screen_name}/#{slug}")
end