Class: EgovUtils::PersonSchema

Inherits:
AzaharaSchema::ModelSchema
  • Object
show all
Defined in:
app/schemas/egov_utils/person_schema.rb

Instance Method Summary collapse

Instance Method Details

#initialize_available_attributesObject



8
9
10
11
12
# File 'app/schemas/egov_utils/person_schema.rb', line 8

def initialize_available_attributes
  @available_attributes ||= []
  @available_attributes << AzaharaSchema::DerivedAttribute.new(model, 'fullname', :concat, 'natural_person-fullname', 'legal_person-name', schema: self)
  super
end

#main_attribute_nameObject



4
5
6
# File 'app/schemas/egov_utils/person_schema.rb', line 4

def main_attribute_name
  'fullname'
end