Class: ConceptView::Language
- Inherits:
-
Object
- Object
- ConceptView::Language
- Defined in:
- app/view_models/concept_view.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, caption, active) ⇒ Language
constructor
A new instance of Language.
Constructor Details
#initialize(id, caption, active) ⇒ Language
Returns a new instance of Language.
8 9 10 11 12 |
# File 'app/view_models/concept_view.rb', line 8 def initialize(id, , active) @id = id # TODO: `.to_s`? @caption = @active = active end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
6 7 8 |
# File 'app/view_models/concept_view.rb', line 6 def active @active end |
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
6 7 8 |
# File 'app/view_models/concept_view.rb', line 6 def @caption end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'app/view_models/concept_view.rb', line 6 def id @id end |