Class: EgovUtils::LegalFormAttribute

Inherits:
AzaharaSchema::Attribute
  • Object
show all
Defined in:
app/attributes/egov_utils/legal_form_attribute.rb

Instance Method Summary collapse

Constructor Details

#initialize(model, name) ⇒ LegalFormAttribute

Returns a new instance of LegalFormAttribute.



4
5
6
# File 'app/attributes/egov_utils/legal_form_attribute.rb', line 4

def initialize(model, name)
  super(model, name, 'love')
end

Instance Method Details

#available_valuesObject



8
9
10
# File 'app/attributes/egov_utils/legal_form_attribute.rb', line 8

def available_values
  @available_values ||= EgovUtils::LegalForm.all.collect{|lf| [lf.name, lf.key] }
end