Class: Clever::Models::School

Inherits:
Object
  • Object
show all
Defined in:
lib/clever/models/school.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ School

Returns a new instance of School.



4
5
6
# File 'lib/clever/models/school.rb', line 4

def initialize params
  params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? }
end

Instance Attribute Details

#high_gradeObject

Returns the value of attribute high_grade.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def high_grade
  @high_grade
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def id
  @id
end

#last_modifiedObject

Returns the value of attribute last_modified.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def last_modified
  @last_modified
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def location
  @location
end

#low_gradeObject

Returns the value of attribute low_grade.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def low_grade
  @low_grade
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def name
  @name
end

#nces_idObject

Returns the value of attribute nces_id.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def nces_id
  @nces_id
end

#phoneObject

Returns the value of attribute phone.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def phone
  @phone
end

#principalObject

Returns the value of attribute principal.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def principal
  @principal
end

#school_numberObject

Returns the value of attribute school_number.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def school_number
  @school_number
end

#sis_idObject

Returns the value of attribute sis_id.



2
3
4
# File 'lib/clever/models/school.rb', line 2

def sis_id
  @sis_id
end