ROM::Attribute#aliased

Parsed documentation:
View on GitHub
Return new attribute type with provided alias

@example
  class Tasks < ROM::Relation[:memory]
    schema do
      attribute :user_id, Types::Int
      attribute :name, Types::String
    end
  end

  aliased_user_id = Users.schema[:user_id].aliased(:id)

  aliased_user_id.aliased?
  # => true

  aliased_user_id.name
  # => :user_id

  aliased_user_id.alias
  # => :id

@param [Symbol] name The alias

@return [Attribute]

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.