Class: Twitter::List

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

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods included from Creatable

#created_at

Methods inherited from Identity

#==, fetch, #id, #initialize, store

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::Identity

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#followingObject (readonly) Also known as: following?

Returns the value of attribute following.



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

def following
  @following
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



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

def full_name
  @full_name
end

#member_countObject (readonly)

Returns the value of attribute member_count.



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

def member_count
  @member_count
end

#modeObject (readonly)

Returns the value of attribute mode.



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

def mode
  @mode
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#slugObject (readonly)

Returns the value of attribute slug.



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

def slug
  @slug
end

#subscriber_countObject (readonly)

Returns the value of attribute subscriber_count.



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

def subscriber_count
  @subscriber_count
end

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end

Instance Method Details

#userTwitter::User

Returns:



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

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