Sha256: dbc3f62da03b5d50efed6e22c1a40de0d1240562dc4eef0b0a0661627793d306

Contents?: true

Size: 385 Bytes

Versions: 76

Compression:

Stored size: 385 Bytes

Contents

module EgovUtils
  class PersonSchema < AzaharaSchema::ModelSchema

    def main_attribute_name
      'fullname'
    end

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

  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
egov_utils-0.6.5 app/schemas/egov_utils/person_schema.rb
egov_utils-0.6.4 app/schemas/egov_utils/person_schema.rb
egov_utils-0.6.3 app/schemas/egov_utils/person_schema.rb
egov_utils-0.6.2 app/schemas/egov_utils/person_schema.rb
egov_utils-0.6.1 app/schemas/egov_utils/person_schema.rb
egov_utils-0.6.0 app/schemas/egov_utils/person_schema.rb
egov_utils-0.5.2 app/schemas/egov_utils/person_schema.rb
egov_utils-0.5.1 app/schemas/egov_utils/person_schema.rb
egov_utils-0.5.0 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.18 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.17 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.16 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.15 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.14 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.13 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.10 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.9 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.7 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.6 app/schemas/egov_utils/person_schema.rb
egov_utils-0.4.5 app/schemas/egov_utils/person_schema.rb