lib/meibo/roster.rb in meibo-0.21.0 vs lib/meibo/roster.rb in meibo-0.22.0

- old
+ new

@@ -4,17 +4,17 @@ require "csv" module Meibo class Roster class << self - def from_file(file_path, profile: Meibo.default_profile) + def from_file(file_path, profile: Meibo.current_profile) Reader.open(file_path, profile: profile) do |reader| return read_data(reader, profile) end end - def from_buffer(io, profile: Meibo.default_profile) + def from_buffer(io, profile: Meibo.current_profile) Reader.open_buffer(io, profile: profile) do |reader| return read_data(reader, profile) end end @@ -84,10 +84,10 @@ end attr_reader :profile, :manifest_properties, :academic_sessions, :classes, :courses, :demographics, :enrollments, :organizations, :roles, :user_profiles, :users - def initialize(profile: Meibo.default_profile, manifest_properties: {}, academic_sessions: [], classes: [], + def initialize(profile: Meibo.current_profile, manifest_properties: {}, academic_sessions: [], classes: [], courses: [], demographics: [], enrollments: [], organizations: [], roles: [], user_profiles: [], users: []) @profile = profile @manifest_properties = manifest_properties @academic_sessions = profile.data_set_for(:academic_sessions).new(academic_sessions, roster: self) @classes = profile.data_set_for(:classes).new(classes, roster: self)