Sha256: 0cc22276c6585a3208e02e6527541f832e34ef24a0236e0990c2b5f4cb5e8c8a

Contents?: true

Size: 362 Bytes

Versions: 30

Compression:

Stored size: 362 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, 'firstname', 'lastname', schema: self)
      super
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
egov_utils-0.1.30 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.29 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.28 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.27 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.26 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.23 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.19 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.18 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.17 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.16 app/schemas/egov_utils/person_schema.rb