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:
484 485 486 487 488 |
# File 'lib/reve/classes.rb', line 484 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.
483 484 485 |
# File 'lib/reve/classes.rb', line 483 def classes @classes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
482 483 484 |
# File 'lib/reve/classes.rb', line 482 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
482 483 484 |
# File 'lib/reve/classes.rb', line 482 def name @name end |