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:



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

#classesObject

Returns the value of attribute classes.



527
528
529
# File 'lib/reve/classes.rb', line 527

def classes
  @classes
end

#idObject (readonly)

Returns the value of attribute id.



526
527
528
# File 'lib/reve/classes.rb', line 526

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



526
527
528
# File 'lib/reve/classes.rb', line 526

def name
  @name
end