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:



509
510
511
512
513
# File 'lib/reve/classes.rb', line 509

def initialize(elem) #:nodoc:
  @name = elem['categoryName']
  @id = elem['categoryID'].to_i
  @classes = []
end

Instance Attribute Details

#classesObject

Returns the value of attribute classes.



508
509
510
# File 'lib/reve/classes.rb', line 508

def classes
  @classes
end

#idObject (readonly)

Returns the value of attribute id.



507
508
509
# File 'lib/reve/classes.rb', line 507

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



507
508
509
# File 'lib/reve/classes.rb', line 507

def name
  @name
end