Module: X::Objects::Lookups::Communities
- Included in:
- API
- Defined in:
- x-objects/lib/x/objects/lookups/communities.rb
Overview
Look up and search communities, mixed into a client through API
Internal to x-objects: X::Objects::API includes it, and its methods are public API of the client that includes API, but the module is only how they are grouped, and some of them need the methods of another, so include API rather than this module alone.
Instance Method Summary collapse
-
#find_community(id, **params) {|problem| ... } ⇒ Community?
Look up a community by identifier.
-
#find_community!(id, **params) ⇒ Community
Look up a community by identifier, which must exist.
-
#search_communities(query, **params) ⇒ Cursor
Search communities.
Instance Method Details
#find_community(id, **params) {|problem| ... } ⇒ Community?
Look up a community by identifier
25 26 27 |
# File 'x-objects/lib/x/objects/lookups/communities.rb', line 25 def find_community(id, **params, &) Community.find(id, client: self, **params, &) end |