Class: ConceptView::Language

Inherits:
Object
  • Object
show all
Defined in:
app/view_models/concept_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, caption, active)
  @id = id # TODO: `.to_s`?
  @caption = caption
  @active = active
end

Instance Attribute Details

#activeObject (readonly)

Returns the value of attribute active.



6
7
8
# File 'app/view_models/concept_view.rb', line 6

def active
  @active
end

#captionObject (readonly)

Returns the value of attribute caption.



6
7
8
# File 'app/view_models/concept_view.rb', line 6

def caption
  @caption
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'app/view_models/concept_view.rb', line 6

def id
  @id
end