Sha256: ae57f4a06bb1acfa12289108285add014bb9e8ac1a3010cadb5fdf8c6b7f81fe
Contents?: true
Size: 1.09 KB
Versions: 15
Compression:
Stored size: 1.09 KB
Contents
module Ecoportal module API class Internal # @attr_reader client [Common::Client] a `Common::Client` object that holds the configuration of the api connection. class LoginProviders include Enumerable attr_reader :client # @param client [Common::Client] a `Common::Client` object that holds the configuration of the api connection. # @return [LoginProviders] an instance object ready to make login providers api requests. def initialize(client) @client = client end # Gets all the login providers via api request. # @return [Enumerable<LoginProvider>] an `Enumerable` with all login providers already wrapped as `LoginProvider` objects. def get_all response = @client.get("/login_providers") Common::WrappedResponse.new(response, Internal::LoginProvider) end def each(&block) return to_enum(:each) unless block get_all.each(&block) end end end end end require 'ecoportal/api/internal/login_provider'
Version data entries
15 entries across 15 versions & 1 rubygems