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:
586 587 588 589 590 |
# File 'lib/reve/classes.rb', line 586 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.
585 586 587 |
# File 'lib/reve/classes.rb', line 585 def certificates @certificates end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
584 585 586 |
# File 'lib/reve/classes.rb', line 584 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
584 585 586 |
# File 'lib/reve/classes.rb', line 584 def name @name end |