Class: Clever::Types::School
- Inherits:
-
Object
- Object
- Clever::Types::School
- Defined in:
- lib/clever/types/school.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ School
constructor
A new instance of School.
Constructor Details
#initialize(attributes = {}) ⇒ School
Returns a new instance of School.
8 9 10 11 12 13 |
# File 'lib/clever/types/school.rb', line 8 def initialize(attributes = {}, *) @uid = attributes['id'] @name = attributes['name'] @number = attributes['school_number'] @provider = 'clever' end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/clever/types/school.rb', line 6 def name @name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/clever/types/school.rb', line 6 def number @number end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/clever/types/school.rb', line 6 def uid @uid end |