Class: Reve::Classes::Certificate
Instance Attribute Summary collapse
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#grade ⇒ Object
readonly
Returns the value of attribute grade.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#required_certificates ⇒ Object
Returns the value of attribute required_certificates.
-
#required_skills ⇒ Object
Returns the value of attribute required_skills.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Certificate
constructor
A new instance of Certificate.
Constructor Details
#initialize(elem) ⇒ Certificate
Returns a new instance of Certificate.
552 553 554 555 556 557 558 559 |
# File 'lib/reve/classes.rb', line 552 def initialize(elem) @id = elem['certificateID'].to_i @grade = elem['grade'].to_i @corporation_id = elem['corporationID'].to_i @description = elem['description'] @required_certificates = [] @required_skills = [] end |
Instance Attribute Details
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
550 551 552 |
# File 'lib/reve/classes.rb', line 550 def corporation_id @corporation_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
550 551 552 |
# File 'lib/reve/classes.rb', line 550 def description @description end |
#grade ⇒ Object (readonly)
Returns the value of attribute grade.
550 551 552 |
# File 'lib/reve/classes.rb', line 550 def grade @grade end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
550 551 552 |
# File 'lib/reve/classes.rb', line 550 def id @id end |
#required_certificates ⇒ Object
Returns the value of attribute required_certificates.
551 552 553 |
# File 'lib/reve/classes.rb', line 551 def required_certificates @required_certificates end |
#required_skills ⇒ Object
Returns the value of attribute required_skills.
551 552 553 |
# File 'lib/reve/classes.rb', line 551 def required_skills @required_skills end |