Class: ArDocStore::Attributes::Integer

Inherits:
Base
  • Object
show all
Defined in:
lib/ar_doc_store/attributes/integer.rb

Instance Attribute Summary

Attributes inherited from Base

#attribute, #conversion, #default, #model, #options

Instance Method Summary collapse

Methods inherited from Base

#add_ransacker, #attribute_options, #build, build, #define_query_method, #embedded?, #initialize, #store_attribute

Methods included from CallbackSupport

included

Constructor Details

This class inherits a constructor from ArDocStore::Attributes::Base

Instance Method Details

#attribute_typeObject



14
15
16
# File 'lib/ar_doc_store/attributes/integer.rb', line 14

def attribute_type
  ActiveModel::Type::Integer
end

#predicateObject



6
7
8
# File 'lib/ar_doc_store/attributes/integer.rb', line 6

def predicate
  'int'
end

#typeObject



10
11
12
# File 'lib/ar_doc_store/attributes/integer.rb', line 10

def type
  :number
end