Method: LearnSprout::School#initialize

Defined in:
lib/learnsprout/school.rb

#initialize(attrs = {}) ⇒ School

Returns a new instance of School.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/learnsprout/school.rb', line 12

def initialize(attrs={})
    @client = attrs["client"]
    @org_id = attrs["org_id"]
    @school_id = attrs["id"]
    @name = attrs["name"]
    @number = attrs["number"]
    @nces = Nces.new(attrs["nces"])
    @phone = Phone.new(attrs["phone"])
    @address = Address.new(attrs["address"])
    @time_updated = attrs["time_updated"]
end