Class: Reve::Classes::CertificateClass
Overview
A class of Certificates. Attributes:
-
id ( Fixnum ) - ID of the CertificateClass
-
name ( String ) - Name of the CertificateClass
-
classes ( [ Certificate ] ) - Array of Certificate objects under this class
Instance Attribute Summary collapse
-
#certificates ⇒ Object
Returns the value of attribute certificates.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ CertificateClass
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ CertificateClass
:nodoc:
543 544 545 546 547 |
# File 'lib/reve/classes.rb', line 543 def initialize(elem) #:nodoc: @name = elem['className'] @id = elem['classID'].to_i @certificates = [] end |
Instance Attribute Details
#certificates ⇒ Object
Returns the value of attribute certificates.
542 543 544 |
# File 'lib/reve/classes.rb', line 542 def certificates @certificates end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
541 542 543 |
# File 'lib/reve/classes.rb', line 541 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
541 542 543 |
# File 'lib/reve/classes.rb', line 541 def name @name end |