Sha256: 0730ca39f64e7c0c6a249bc32f8a48374057cbe0329af1d63626e19f1f1923a5
Contents?: true
Size: 1.06 KB
Versions: 21
Compression:
Stored size: 1.06 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
21 entries across 21 versions & 1 rubygems