module Ecoportal module API class V1 class PersonSchemas include Enumerable attr_reader :client def initialize(client) @client = client end def each(params: {}, &block) get_all.each(&block) self 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'