Sha256: e32d325b3ed893d879f79fd6bcb8046773a10a5b5b892961012644ae1eff611d

Contents?: true

Size: 382 Bytes

Versions: 9

Compression:

Stored size: 382 Bytes

Contents

module EgovUtils
  class UserSchema < AzaharaSchema::ModelSchema

    def main_attribute_name
      'fullname'
    end

    def initialize_available_attributes
      @available_attributes ||= []
      @available_attributes << Fullname.new(model, 'fullname', 'string')
      super
      @available_attributes << AllRoleNames.new(model, 'all_role_names', 'string')
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
egov_utils-0.1.15 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.14 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.13 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.12 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.11 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.10 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.9 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.8 app/schemas/egov_utils/user_schema.rb
egov_utils-0.1.7 app/schemas/egov_utils/user_schema.rb