Module: Flocks
- Extended by:
- Configuration, Ordering, Relationships, Search
- Defined in:
- lib/flocks.rb,
lib/flocks/search.rb,
lib/flocks/version.rb,
lib/flocks/ordering.rb,
lib/flocks/configuration.rb,
lib/flocks/relationships.rb
Defined Under Namespace
Modules: Configuration, Ordering, Relationships, Search
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.user_id ⇒ Object
Returns the value of attribute user_id.
-
.username_score ⇒ Object
Returns the value of attribute username_score.
Attributes included from Configuration
#blocked_by_key, #blocked_key, #followers_key, #following_key, #namespace, #page_size, #pending_follow, #pending_key, #pending_with_key, #reciprocated_key, #redis, #string_score_percision
Class Method Summary collapse
Methods included from Relationships
block, blocked, blocked?, follow, followers, followers_count, followers_page_count, following, following?, following_count, following_page_count, relationship_blocked_key, relationship_followers_key, relationship_following_key, unblock, unfollow
Methods included from Search
search_followers, search_following, search_graph
Methods included from Ordering
Methods included from Configuration
Class Attribute Details
.user_id ⇒ Object
Returns the value of attribute user_id.
15 16 17 |
# File 'lib/flocks.rb', line 15 def user_id @user_id end |
.username_score ⇒ Object
Returns the value of attribute username_score.
15 16 17 |
# File 'lib/flocks.rb', line 15 def username_score @username_score end |
Class Method Details
.new(user_id, username = nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/flocks.rb', line 17 def new(user_id, username = nil) self.user_id = user_id self.username_score = rank_username(username) self end |