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.2.13 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.12 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.11 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.10 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.9 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.8 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.7 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.6 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.5 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.4 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.3 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.2 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.1 app/schemas/egov_utils/person_schema.rb
egov_utils-0.2.0 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.37 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.36 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.35 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.33 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.32 app/schemas/egov_utils/person_schema.rb
egov_utils-0.1.31 app/schemas/egov_utils/person_schema.rb