Sha256: bfcfd5dcf588d0dd4957cfe5aa2143c7e9a345eac2b07ca4c93cf0e6dd93e98c
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
Contents
module Ribose class Connection < Ribose::Base include Ribose::Actions::All # List Connections # # Note: Currently, There are some chaching in place for this endpoint # which requires us to pass the `s` query params otherwise we might # have some unexpected behavior sometime. That's why we are adding # the `s` incase that's not present with the query options. # # @param options [Hash] Query parameters as a Hash # @return [Sawyer::Resource] # def self.all(options = {}) new(options.merge(query: { s: "" })).all end # List connection suggestions # # @param options [Hash] Query parameters as a Hash # @return [Array <Sawyer::Resource>] # def self.suggestions(client: nil, **options) Request.get("people_finding", client: client, query: options). suggested_connection end private def resource "connection" end def resources_path "people/connections" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ribose-0.3.2 | lib/ribose/connection.rb |
ribose-0.3.1 | lib/ribose/connection.rb |
ribose-0.3.0 | lib/ribose/connection.rb |
ribose-0.2.0 | lib/ribose/connection.rb |