Class: Reve::Classes::CertificateCategory
Overview
Category of Certificates. Attributes:
-
id ( Fixnum ) - ID of the CertificateCategory
-
name ( String ) - Name of the CertificateCategory
-
classes ( [ CertificateClass ] ) - Array of CertificateClass objects under this Category
Instance Attribute Summary collapse
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ CertificateCategory
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ CertificateCategory
:nodoc:
528 529 530 531 532 |
# File 'lib/reve/classes.rb', line 528 def initialize(elem) #:nodoc: @name = elem['categoryName'] @id = elem['categoryID'].to_i @classes = [] end |
Instance Attribute Details
#classes ⇒ Object
Returns the value of attribute classes.
527 528 529 |
# File 'lib/reve/classes.rb', line 527 def classes @classes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
526 527 528 |
# File 'lib/reve/classes.rb', line 526 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
526 527 528 |
# File 'lib/reve/classes.rb', line 526 def name @name end |