Class: Coop::Group
- Defined in:
- lib/coop/api_object/group.rb
Instance Method Summary collapse
-
#agenda ⇒ Object
Public: The base for all agenda API calls.
-
#post!(message) ⇒ Object
Public: Post a status update to a group.
-
#post_as_cobot!(message, api_key) ⇒ Object
Public: Post a status update to a group as Cobot.
-
#statuses ⇒ Object
Public: The base for all status API calls.
-
#users ⇒ Object
Public: The base for all user API calls.
Methods inherited from APIObject
Instance Method Details
#agenda ⇒ Object
Public: The base for all agenda API calls
Examples
self.statuses
# => #<Coop::Agenda @group_id=12345>
Returns a Coop::Agenda instance with the group_id set
52 53 54 |
# File 'lib/coop/api_object/group.rb', line 52 def agenda Agenda.new({ group_id: self.id }) end |
#post!(message) ⇒ Object
25 26 27 |
# File 'lib/coop/api_object/group.rb', line 25 def post!() Status.new({ group_id: self.id }).post!() end |
#post_as_cobot!(message, api_key) ⇒ Object
40 41 42 |
# File 'lib/coop/api_object/group.rb', line 40 def post_as_cobot!(, api_key) Status.new({ group_id: self.id }).post_as_cobot!(, api_key) end |