Class: Clever::Types::Term
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Term
constructor
A new instance of Term.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ Term
Returns a new instance of Term.
11 12 13 14 15 16 |
# File 'lib/clever/types/term.rb', line 11 def initialize(attributes = {}, *) @uid = attributes['id'] @name = attributes['name'] @start_date = attributes['start_date'] @end_date = attributes['end_date'] end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
6 7 8 |
# File 'lib/clever/types/term.rb', line 6 def end_date @end_date end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/clever/types/term.rb', line 6 def name @name end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
6 7 8 |
# File 'lib/clever/types/term.rb', line 6 def start_date @start_date end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/clever/types/term.rb', line 6 def uid @uid end |