Class: Twitter::List
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, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader
Methods included from Utils
flat_pmap, pmap
Instance Attribute Details
#description ⇒ String
10
11
12
|
# File 'lib/twitter/list.rb', line 10
def description
@description
end
|
#full_name ⇒ String
10
11
12
|
# File 'lib/twitter/list.rb', line 10
def full_name
@full_name
end
|
#member_count ⇒ Integer
8
9
10
|
# File 'lib/twitter/list.rb', line 8
def member_count
@member_count
end
|
#mode ⇒ String
10
11
12
|
# File 'lib/twitter/list.rb', line 10
def mode
@mode
end
|
#name ⇒ String
10
11
12
|
# File 'lib/twitter/list.rb', line 10
def name
@name
end
|
#slug ⇒ String
10
11
12
|
# File 'lib/twitter/list.rb', line 10
def slug
@slug
end
|
#subscriber_count ⇒ Integer
8
9
10
|
# File 'lib/twitter/list.rb', line 8
def subscriber_count
@subscriber_count
end
|
Instance Method Details
#members_uri ⇒ Addressable::URI
Also known as:
members_url
Returns The URI to the list members.
16
17
18
|
# File 'lib/twitter/list.rb', line 16
def members_uri
Addressable::URI.parse("#{uri}/members") if uri?
end
|
#subscribers_uri ⇒ Addressable::URI
Also known as:
subscribers_url
Returns The URI to the list subscribers.
23
24
25
|
# File 'lib/twitter/list.rb', line 23
def subscribers_uri
Addressable::URI.parse("#{uri}/subscribers") if uri?
end
|
#uri ⇒ Addressable::URI
Also known as:
url
Returns The URI to the list.
30
31
32
|
# File 'lib/twitter/list.rb', line 30
def uri
Addressable::URI.parse("https://twitter.com/#{user.screen_name}/#{slug}") if slug? && user.screen_name?
end
|
#uri? ⇒ Boolean
36
37
38
|
# File 'lib/twitter/list.rb', line 36
def uri?
!!uri
end
|