Class: Ekispert::Course::PassStatus
- Inherits:
-
EkispertBase
- Object
- EkispertBase
- Ekispert::Course::PassStatus
- Defined in:
- lib/ekispert/course/pass_status.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#comment_list ⇒ Object
Returns the value of attribute comment_list.
-
#name_list ⇒ Object
Returns the value of attribute name_list.
-
#price_list ⇒ Object
Returns the value of attribute price_list.
-
#type_list ⇒ Object
Returns the value of attribute type_list.
Instance Method Summary collapse
- #comment ⇒ Object
-
#initialize(element = nil) ⇒ PassStatus
constructor
A new instance of PassStatus.
- #name ⇒ Object
- #type ⇒ Object
Methods included from Util
Constructor Details
#initialize(element = nil) ⇒ PassStatus
Returns a new instance of PassStatus.
7 8 9 10 11 12 13 14 15 |
# File 'lib/ekispert/course/pass_status.rb', line 7 def initialize(element=nil) @comment_list = [] @name_list = [] @type_list = [] @price_list = [] # Use Course#relate_price_and_pass_status return if element.nil? super(element) end |
Instance Attribute Details
#comment_list ⇒ Object
Returns the value of attribute comment_list.
4 5 6 |
# File 'lib/ekispert/course/pass_status.rb', line 4 def comment_list @comment_list end |
#name_list ⇒ Object
Returns the value of attribute name_list.
4 5 6 |
# File 'lib/ekispert/course/pass_status.rb', line 4 def name_list @name_list end |
#price_list ⇒ Object
Returns the value of attribute price_list.
5 6 7 |
# File 'lib/ekispert/course/pass_status.rb', line 5 def price_list @price_list end |
#type_list ⇒ Object
Returns the value of attribute type_list.
4 5 6 |
# File 'lib/ekispert/course/pass_status.rb', line 4 def type_list @type_list end |
Instance Method Details
#comment ⇒ Object
17 18 19 |
# File 'lib/ekispert/course/pass_status.rb', line 17 def comment @comment_list[0]&.text end |
#name ⇒ Object
21 22 23 |
# File 'lib/ekispert/course/pass_status.rb', line 21 def name @name_list[0]&.text end |
#type ⇒ Object
25 26 27 |
# File 'lib/ekispert/course/pass_status.rb', line 25 def type @type_list[0]&.text end |