Class: Clever::Types::School

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/clever/types/school.rb', line 6

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



6
7
8
# File 'lib/clever/types/school.rb', line 6

def number
  @number
end

#uidObject (readonly)

Returns the value of attribute uid.



6
7
8
# File 'lib/clever/types/school.rb', line 6

def uid
  @uid
end