Sha256: 3512c51ce615cc882ae1da4713d66f6cac6c41959efd9791e80163df3214904d
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
module GlipSdk module REST class Groups attr_accessor :subscription def initialize(rc_sdk) @api = rc_sdk end def get(opts = {}) if opts.key? :groupId return @api.http.get "glip/groups/#{opts[:groupId]}" end @api.http.get 'glip/groups', opts end def observe(observer) @subscription = @api.create_subscription @subscription.subscribe ['/restapi/v1.0/account/~/extension/~/glip/groups'] @subscription.add_observer observer end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glip_sdk-0.0.2 | lib/glip_sdk/rest/groups.rb |
glip_sdk-0.0.1 | lib/glip_sdk/rest/groups.rb |