Sha256: 232f743d5b775b9f80ba25c8f7b8507357550e016b7ff6c2dc334ae6a5967800
Contents?: true
Size: 948 Bytes
Versions: 4
Compression:
Stored size: 948 Bytes
Contents
module Coop class Agenda < APIObject # Public: Get the group's global agenda # # Examples # # Agenda.new({ group_id: 12345 }).global # # => #<Coop::APIObject> # # Returns APIObject with the agenda data def global Coop.get_parsed("/groups/#{self.group_id}/agenda") end # Public: Get the group's agendas for all users # # Examples # # Agenda.new({ group_id: 12345 }).users # # => [#<Coop::APIObject>, #<Coop::APIObject>, ...] # # Returns Array of APIObject with the agenda data def users Coop.get_parsed("/groups/#{self.group_id}/user_agendas") end # Public: Get the group's global agenda # # Examples # # Agenda.new({ group_id: 12345 }).user # # => #<Coop::APIObject> # # Returns APIObject with the agenda data def user Coop.get_parsed("/groups/#{self.group_id}/my_agenda") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
coop-1.1.1 | lib/coop/api_object/agenda.rb |
coop-1.1.0 | lib/coop/api_object/agenda.rb |
coop-1.0.1 | lib/coop/api_object/agenda.rb |
coop-1.0.0 | lib/coop/api_object/agenda.rb |