Sha256: 8abd96577d2c2814c02e48d03ab4946e3837a804445f6bc38bc4dcd6f4d2b60b

Contents?: true

Size: 369 Bytes

Versions: 75

Compression:

Stored size: 369 Bytes

Contents

module EgovUtils
  class NaturalPersonSchema < AzaharaSchema::ModelSchema

    def main_attribute_name
      'fullname'
    end

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

  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
egov_utils-1.4.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.3.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.2.4 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.2.3 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.2.2 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.2.1 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.2.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.1.1 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.1.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.0.3 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.0.2 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.0.1 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-1.0.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.5 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.4 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.3 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.2 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.1 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.7.0 app/schemas/egov_utils/natural_person_schema.rb
egov_utils-0.6.5 app/schemas/egov_utils/natural_person_schema.rb