Class: Reve::Classes::CertificateCategory

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

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

#classesObject

Returns the value of attribute classes.



483
484
485
# File 'lib/reve/classes.rb', line 483

def classes
  @classes
end

#idObject (readonly)

Returns the value of attribute id.



482
483
484
# File 'lib/reve/classes.rb', line 482

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



482
483
484
# File 'lib/reve/classes.rb', line 482

def name
  @name
end