Class: OneRoster::Types::Term

Inherits:
Base
  • Object
show all
Defined in:
lib/types/term.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_h

Constructor Details

#initialize(attributes = {}) ⇒ Term

Returns a new instance of Term.



11
12
13
14
15
16
# File 'lib/types/term.rb', line 11

def initialize(attributes = {}, *)
  @uid        = attributes['sourcedId']
  @name       = attributes['title']
  @start_date = attributes['startDate']
  @end_date   = attributes['endDate']
end

Instance Attribute Details

#end_dateObject (readonly)

Returns the value of attribute end_date.



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

def end_date
  @end_date
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



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

def start_date
  @start_date
end

#uidObject (readonly)

Returns the value of attribute uid.



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

def uid
  @uid
end