Sha256: 4f320f3c761de11a7384f4140fb2b73af82f09270804dce3f46f7e9825547bff
Contents?: true
Size: 633 Bytes
Versions: 14
Compression:
Stored size: 633 Bytes
Contents
module Ecoportal module API class V1 class PersonSchemas include Enumerable attr_reader :client def initialize(client) @client = client end def each(params: {}, &block) return to_enum(:each) unless block get_all.each(&block) end def get_all response = @client.get("/person_schemas") Common::WrappedResponse.new(response, person_schema_class) end private def person_schema_class V1::PersonSchema end end end end end require 'ecoportal/api/v1/person_schema'
Version data entries
14 entries across 14 versions & 1 rubygems