Class: LUSI::API::Course::SyllabusRuleModule
- Inherits:
-
Object
- Object
- LUSI::API::Course::SyllabusRuleModule
- Defined in:
- lib/lusi_api/course.rb
Overview
Represents a syllabus rule in the LUSI API
Instance Attribute Summary collapse
-
#display_long_title ⇒ String?
The long title of the rule.
-
#display_short_title ⇒ String?
The short title of the rule.
-
#identity ⇒ LUSI::API::Course::Identity?
The identity code of the associatied module or scheme of study.
Instance Method Summary collapse
-
#initialize(xml = nil, lookup = nil, display_long_title: nil, display_short_title: nil, identity: nil) ⇒ void
constructor
Initialises a new SyllabusRuleModule instance.
-
#to_s ⇒ String
Returns a string representation to the SyllabusRuleModule instance.
Constructor Details
#initialize(xml = nil, lookup = nil, display_long_title: nil, display_short_title: nil, identity: nil) ⇒ void
Initialises a new SyllabusRuleModule instance
1038 1039 1040 1041 1042 |
# File 'lib/lusi_api/course.rb', line 1038 def initialize(xml = nil, lookup = nil, display_long_title: nil, display_short_title: nil, identity: nil) @display_long_title = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:DisplayLongTitle', display_long_title) @display_short_title = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:DisplayShortTitle', display_short_title) @identity = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:Identity', identity) end |
Instance Attribute Details
#display_long_title ⇒ String?
Returns the long title of the rule.
1025 1026 1027 |
# File 'lib/lusi_api/course.rb', line 1025 def display_long_title @display_long_title end |
#display_short_title ⇒ String?
Returns the short title of the rule.
1029 1030 1031 |
# File 'lib/lusi_api/course.rb', line 1029 def display_short_title @display_short_title end |
#identity ⇒ LUSI::API::Course::Identity?
Returns the identity code of the associatied module or scheme of study.
1021 1022 1023 |
# File 'lib/lusi_api/course.rb', line 1021 def identity @identity end |
Instance Method Details
#to_s ⇒ String
Returns a string representation to the SyllabusRuleModule instance
1046 1047 1048 |
# File 'lib/lusi_api/course.rb', line 1046 def to_s @display_long_title end |