Class: Increase::Resources::OAuthConnections
- Inherits:
-
Object
- Object
- Increase::Resources::OAuthConnections
- Defined in:
- lib/increase/resources/oauth_connections.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ OAuthConnections
constructor
A new instance of OAuthConnections.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::OAuthConnection>
List OAuth Connections.
-
#retrieve(oauth_connection_id, opts = {}) ⇒ Increase::Models::OAuthConnection
Retrieve an OAuth Connection.
Constructor Details
#initialize(client:) ⇒ OAuthConnections
Returns a new instance of OAuthConnections.
6 7 8 |
# File 'lib/increase/resources/oauth_connections.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::OAuthConnection>
List OAuth Connections
35 36 37 38 39 40 41 42 43 |
# File 'lib/increase/resources/oauth_connections.rb', line 35 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/oauth_connections" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::OAuthConnection @client.request(req, opts) end |
#retrieve(oauth_connection_id, opts = {}) ⇒ Increase::Models::OAuthConnection
Retrieve an OAuth Connection
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/oauth_connections.rb', line 16 def retrieve(oauth_connection_id, opts = {}) req = {} req[:method] = :get req[:path] = "/oauth_connections/#{oauth_connection_id}" req[:model] = Increase::Models::OAuthConnection @client.request(req, opts) end |