class BigInteger
Ruby on Rails 8.1.2
Since v7.1.6Active Model BigInteger Type
Attribute type for integers that can be serialized to an unlimited number of bytes. This type is registered under the :big_integer key.
class Person include ActiveModel::Attributes attribute :id, :big_integer end person = Person.new person.id = "18_000_000_000" person.id # => 18000000000
All casting and serialization are performed in the same way as the standard ActiveModel::Type::Integer type.
Inherits from
Methods (defined here)
Private methods
(1)
Implementation detail — not part of the public API.
Methods (inherited)
From Integer (7)
- # month
- # months
- # multiple_of?
- # ordinal
- # ordinalize
- # year
- # years
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs